question

Katharina Albert avatar image
0 Likes"
Katharina Albert asked Mischa Spelt commented

Network view mode error

Hello,

I have several networks in my very large model. One for operators at Landside Receiving, which I set to invisible. Then I created another one for trucks at the docks. When I wanted to toggle the view mode, I can change all to Non visible or just edges, but if I select to see all nodes for further editing I get the below error message and the entire graphics of the model gets messed-up, so I cannot save it like this nor edit the network any more.

The error occurs for the network node NN305 that remained visible to toggle the view modes of the operator network.

Could you please tell me, whether this can be fixed (don't want to delete all network nodes from the tree and start again) and what I maybe done wrong to avoid this mistake in the future? It cannot be a graphics card issue as it happens on both my laptops...

Thanks for your help,

Kat

exception: Exception Caught in NetworkNode::buildMesh() object: /GF/LANDSIDE_RECEIVING/NN305
exception: Exception Caught in NetworkNode::onPreDraw(treenode view) object: /GF/LANDSIDE_RECEIVING/NN305
exception: Exception Caught in ObjectFunction233__project_library_FlexSimEventHandler_behaviour_eventfunctions_OnPreDraw object: /GF/LANDSIDE_RECEIVING/NN305 class: /GF/LANDSIDE_RECEIVING/NN305

exception: Exception caught in TreeNode::receivemessage()
exception: EditorSpatial::prepareDraw()
network nodesexceptionsview mode
· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

Is there any way you could attach your model? Or at least your model where you've removed everything except the network nodes?

0 Likes 0 ·
Katharina Albert avatar image Katharina Albert Matthew Gillespie ♦♦ commented ·

No, I cannot publish it and removing everything but the network will take a lot of effort as well. I think I will email it to the support team directly. Once we figured out what went wrong, we will post it here.

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Katharina Albert commented ·

You can run this script to delete all objects except network nodes:

for(int i = 2; i <= content(model()); i++) {
	treenode obj = rank(model(), i);
	
	if(isclasstype(obj, "NetworkNode") || isclasstype(obj, "NetworkNavigator"))
		continue;
		
	destroyobject(obj);
	i--;
}

Or you can post a private question and only the support team will be able to see the post.

0 Likes 0 ·
Mischa Spelt avatar image Mischa Spelt commented ·

Hi @Katharina Albert. Please let me know if you find a solution, because I'm running into the same issue at the moment.

0 Likes 0 ·
Katharina Albert avatar image
2 Likes"
Katharina Albert answered Mischa Spelt commented

Hey everyone, I've sent the model to support and apparently some pointers were corrupted in my model, which they could fix. @Mischa Spelt could you fix your problem with the other suggested methods or can you remember the last steps that led to the problem for them to replicate the issue?

· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Mischa Spelt avatar image Mischa Spelt commented ·

Hi Katharina. Sadly the other methods didn't work for me either, and I cannot remember the steps (I added the network in an early version of the model, then went on to do many other things, and when I tried to make it visible again I ran into the problem). I ended up just removing the whole network and adding it back in. I'm keeping it visible now, and hope it will keep working. Thanks for the reply though!

0 Likes 0 ·
anthony.johnson avatar image anthony.johnson ♦♦ Mischa Spelt commented ·

Mischa, I used the following script to fix the corruption. I've added a mechanism to automatically fix this issue going forward.

forobjecttreeunder(model()) {
	if (isclasstype(a, "NetworkNode")) {
		for (int i = 1; i <= content(connectionsout(a)); i++) {
			setsdtvalue(rank(connectionsout(a), i), "netNode", a);
		}
	}
}
2 Likes 2 ·
Mischa Spelt avatar image Mischa Spelt anthony.johnson ♦♦ commented ·

Thanks @anthony.johnson! Will put this in my snippet book :)

1 Like 1 ·
Katharina Albert avatar image Katharina Albert Mischa Spelt commented ·

Ok, so it happened same way as to me, so maybe when we upgraded the model to the latest version, something went wrong with the network...

0 Likes 0 ·
Phil BoBo avatar image
1 Like"
Phil BoBo answered Phil BoBo commented

Are your laptops using Nvidia Quadro graphics cards?

If so, try opening your NVIDIA control panel and change 3D settings to "3D App - Game Development."

Even though it happens on both of your laptops, it may still be a graphics card issue. Does it still happen if you put FlexSim into graphics Compatibility Mode?

· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

This and other graphics-related suggestions are outlined in this article.

It is certainly possible that both laptops have graphics issues that could be resolved with one or more of the suggestions described there.

1 Like 1 ·
Katharina Albert avatar image Katharina Albert Ben Wilson ♦♦ commented ·

Hi Phil and Ben, I have two Dell laptops, on this one XPS 9Q33 I have only Intel HD 4400 onboard graphics card. Shadows off and even in Compatibility mode the same issue. My other laptop has Nvidia card, I am currently travelling and cannot test other settings with that. I have been working on both laptops with Flexsim for years and this is the first time this issue occurs. I am running the latest Flexsim version, the model was created under 7.7 and then upgraded to 2016.

1 Like 1 ·
Phil BoBo avatar image Phil BoBo ♦♦ Katharina Albert commented ·

You are going to need to get us your model so that we can figure out what is going on.

1 Like 1 ·
Marco Baccalaro avatar image
1 Like"
Marco Baccalaro answered Katharina Albert commented

I don't know if it could help, but you could set them again to visible with this script

forobjecttreeunder(model())
	if (isclasstype(a,CLASSTYPE_NETWORKNODE))
		setvarnum(a,"showmode",1);

then destroy and create again the NN305

· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Katharina Albert avatar image Katharina Albert commented ·

Thanks a lot Marco, unfortunately when I execute the script the same happens as if I toggle the view mode in the 3D model. If I first delete the node and then execute the script, the same exception appears for NN306... any other ideas? Thanks, Kat

0 Likes 0 ·
Marco Baccalaro avatar image Marco Baccalaro Katharina Albert commented ·

I would only try to destroy and redo the nodes that were connected to the NN305 and maybe to do View > Open Default Workspace cause it's a draw problem.

0 Likes 0 ·
Katharina Albert avatar image Katharina Albert Marco Baccalaro commented ·

Ok tried the Default Workspace and also deleted NN305 and all nodes connected to it, then executed the script, still same error, it just jumps to the next node. I hope I really don't have to delete the entire network and re-do it... it also happens on both of my laptops with different graphic cards... Thanks a lot for your help Marco, appreciate it.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.