question

Kari Payton avatar image
0 Likes"
Kari Payton asked Regan Blackett answered

Toggle 3D shape view with code for all queues?

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

FlexSim 18.2.2
script3d shape
5 |100000

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

1 Answer

Regan Blackett avatar image
1 Like"
Regan Blackett answered

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")[i], 0);

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

5 |100000

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