question

Nick avatar image
0 Likes"
Nick asked Nick commented

Create and Switch Different Factory Layouts (A* Nav)

Hello Everyone, I am looking to see if it is possible to create different factory layouts within my model and change the layouts when I goto run the experiment.


For example, I would like to run my experiment with this layout: 1710442079177.png And with a click of a button on my dashboard board, run an experiement with this layout:

1710442141531.png

In our actual model we are using A* Navigation, so I don't believe using the model layouts will work (based on other posts)


When I was looking into Vec3.project to see if I can move my objects, it did not seem to work.


Any suggestions, Thank you!

FlexSim 24.1.0
moveobjectvec3setlocation
1710442079177.png (57.4 KiB)
1710442141531.png (112.7 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.

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Nick commented

Here's an example of using the layout in scenarios:

ExperimentLayoutScenario.fsm

Use the Model Layouts tool to set up your layouts:

1710519468379.png

Then set an option parameter for the layouts:

1710519503301.png

with this OnSet code:

  1. treenode layouts = node("/Tools/Layouts", model());
  2. string layoutname = getname(rank(layouts, newValue));
  3. applicationcommand("changemodellayout", layoutname);

and then set up the experiment scenarios to set those parameters:

1710519584664.png



· 1
5 |100000

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