Toggle 3D shape view with code for all queues?

Toggle 3D shape view with code for all queues?

kari_payton
Not applicable
4 Views
1 Reply
Message 1 of 2

Toggle 3D shape view with code for all queues?

kari_payton
Not applicable

[ FlexSim 18.2.2 ]

Is there a way to run a script for all queues to turn their 3d shape view on/off?

0 Likes
Accepted solutions (1)
5 Views
1 Reply
Reply (1)
Message 2 of 2

regan_blackett
Autodesk
Autodesk
Accepted solution

Yes, the command you need to do this is :

switch_hideshape()

If you put all your Queues into a group, this 'for' loop will turn off the shapes:

for(int i = 1; i <= Group("QueueGroup").subnodes.length; i++)   
	switch_hideshape(Group("QueueGroup"), 0);

Set the '0' parameter above to 1 to turn the shapes back on.