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
- treenode path1 = createinstance(node("/AGV/StraightPath",library()),model());
- setsize(path1,Bay*0.54/3+0.5,1,1);
- setloc(path1,0,0.5,0.5);
- Object obj=createcopy(path1,model(),1,0,1,0);
- setloc(obj,0,0.5,1);