Network view mode error

Network view mode error

katharina_albert
Not applicable
445 Views
17 Replies
Message 1 of 18

Network view mode error

katharina_albert
Not applicable

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()
0 Likes
Accepted solutions (1)
446 Views
17 Replies
Replies (17)
Message 2 of 18

marco_baccalaro
Not applicable

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

Message 3 of 18

katharina_albert
Not applicable

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
Message 4 of 18

marco_baccalaro
Not applicable

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
Message 5 of 18

katharina_albert
Not applicable

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
Message 6 of 18

Matthew_Gillespie
Autodesk
Autodesk

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



Matthew Gillespie
FlexSim Software Developer

0 Likes
Message 7 of 18

katharina_albert
Not applicable

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
Message 8 of 18

mischa_spelt
Advisor
Advisor

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
Message 9 of 18

Matthew_Gillespie
Autodesk
Autodesk

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.



Matthew Gillespie
FlexSim Software Developer

0 Likes
Message 10 of 18

philboboADSK
Autodesk
Autodesk

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?



Phil BoBo
Sr. Manager, Software Development
Message 11 of 18

Ben_WilsonADSK
Community Manager
Community Manager

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.

Message 12 of 18

katharina_albert
Not applicable

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.

Message 13 of 18

philboboADSK
Autodesk
Autodesk

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



Phil BoBo
Sr. Manager, Software Development
Message 14 of 18

katharina_albert
Not applicable
Accepted solution

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?

Message 15 of 18

mischa_spelt
Advisor
Advisor

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
Message 16 of 18

katharina_albert
Not applicable

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
Message 17 of 18

anthony_johnsonT83CM
Autodesk
Autodesk

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);
		}
	}
}
Message 18 of 18

mischa_spelt
Advisor
Advisor

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