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.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·
Why wouldn't it work? You may need to disable caching of the AStar routes but otherwise I can't see an issue. You should be able to just set up a model parameter to choose the layout which you can then set in a scenario.


1 Like 1 ·
Nick avatar image Nick Jason Lightfoot ♦ commented ·
Hi Jason, So, should the model layout work if I redraw it? I'm very new to Flexsim, so how would I set up the parameters to switch between models?


I appreciate any help you can provide.

0 Likes 0 ·

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:

treenode layouts = node("/Tools/Layouts", model());
string layoutname = getname(rank(layouts, newValue));
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.

Nick avatar image Nick commented ·
Excellent, I think that is what I was looking for. I will do some testing with A* Nav, but I believe this worked.


Thank you again!

0 Likes 0 ·

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.