About the impact of making AGV path with FrexScript

About the impact of making AGV path with FrexScript

takamatsu_keita
Observer Observer
13 Views
2 Replies
Message 1 of 3

About the impact of making AGV path with FrexScript

takamatsu_keita
Observer
Observer

[ FlexSim 24.0.4 ]

Hello.

Are there any difference between adding AGV path from library and creating it by FlexScript?

// sample FlexScript to create AGV path
Vec3 startloc=[0,0,0];
Vec3 endloc=[10,0,0];
Object path = Object.create("AGV::StraightPath");
path.setProperty("StartLocation",startloc);
path.setProperty("EndLocation",endloc);

I found that tree node path of AGV path added from library was under MODEL:/AGVNetwork. On the contray, the path created by FlexScript was under MODEL:/. I want to know if the difference of tree node path for created AGV path affects to simulation.

0 Likes
Accepted solutions (1)
14 Views
2 Replies
Replies (2)
Message 2 of 3

Jacob_White
Community Manager
Community Manager
Accepted solution

Hi @Keita T.

The sample code that you provided should work just as well as creating the agv path from the library. The Object.create() and setProperty() functions shouldn't cause any issues. That being said, avoid using the createcopy() function on the library node, this can cause some issues to occur when creating an agv path.

0 Likes
Message 3 of 3

takamatsu_keita
Observer
Observer

@Jacob W2 Thank you for your answer. The original problem has been solved. But another question related to this question has arisen. I will create another thread about new question, so i would be grateful if you check it.

0 Likes