question

Steven Chen avatar image
0 Likes"
Steven Chen asked Jason Lightfoot edited

How can we hide AGV paths by using the show/hide function in the checkbox?

We already know that the AGV network function enables us to do that. However, if there are two planes, we cannot simply show the AGV paths of only one plane through the method. The function usually conceals all AGV paths on all floors. It seems improper for us to apply the way to hiding AGV paths in one plane. As a result, we would like to try another method, such as using the checkbox. Could you tell us how to use the way to achieve our goal?

1645458326095.png

FlexSim 22.0.1
agvpathhide paths
1645458326095.png (44.6 KiB)
· 2
5 |100000

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

John-Michael avatar image John-Michael commented ·

Hey, Steven!

The current checkbox and conceal methods do not work as the AGV paths are considered 2D objects. The checkbox and other conceal options only work with 3D objects.


However, you could use a checkbox to turn the color of the AGV path to the same color as the background.

avg-color-fix-with-checkbox1.png

You could edit the code for the OnPress trigger to this format, but change the code on line 8 to match the color of your model's background. This will cause the color of the AGV line to change every time the box is checked/unchecked and the model is reset.

Would this be sufficient for what you are trying to accomplish in your model?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

Have you thought about putting your floors in visual planes as containers and then set the 3D viewfocus to the container? That way you will only see the objects on that floor within the 3D view. To do this right click the plane and choose View->Down. You can then store the view so that you can go to each floor in the quick properties with a simple click.


1645540331946.png

1645540347614.png


FloorsInContainers.fsm

0 Likes 0 ·

1 Answer

·
Tomasz MG avatar image
0 Likes"
Tomasz MG answered

You can put a button with code

setvarnum(Model.find("AGVNetwork"), "pathDrawMode",//1,2,3,4);

and the value from 1 to 4 is those options

1645516586529.png


1645516586529.png (4.1 KiB)
5 |100000

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

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.