TaskExecuter Sim Tool - Posted.fsm
I've created a custom task executer object with conveyors that are attached to the top of this object (shown in the 3D model and copied into a folder under "Tools/MyObjects/Single_TCar"). I'm using custom code in the process flow to make copies and add them to a group, so I can reference the group as a resource and acquire them to execute tasks.
The main line of code I'm using is:
" treenode newTCar = createcopy(Model.find("Tools/MyObjects/Single_TCar").model()); "
This code references a subfolder I made called "MyObjects" under the Tools folder. When the model runs it creates a copy, then pauses, and when I hit reset, the object I created appears in "MyObjects" subfolder instead of the model as I have specified it to be created in. The treenode syntax seems to be the issue. The model doesn't seem to know where the created objects are since it stops and it never acquires the new object in the that step of the process flow.