question

Wang Z2 avatar image
0 Likes"
Wang Z2 asked Joerg Vogel edited

how to use "createcopy" command in AGV module

In my simple model,I create StraightPath with code,then I try to copy the Path in createcopy command.but it failed,I don't know why.

The code show as below,The model is createcopy.fsm

  1. treenode path1 = createinstance(node("/AGV/StraightPath",library()),model());
  2. setsize(path1,Bay*0.54/3+0.5,1,1);
  3. setloc(path1,0,0.5,0.5);
  4.  
  5. Object obj=createcopy(path1,model(),1,0,1,0);
  6. setloc(obj,0,0.5,1);
FlexSim 18.2.3
agv pathcreatecopyfunction_sfinalizespatialchanges
createcopy.fsm (26.7 KiB)
· 3
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

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Joerg Vogel edited

You find the answer in the question “How to create and join AGV paths in flexscript”!

5 |100000

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