Hello,
I am trying to write this command on the dropscript of my custom library. Code is throwing an exception
exception: FlexScript exception: MODEL:/Tools/UserCommands/DropScriptStation/code
- treenode newProcessor = dropuserlibraryobject(node("..>AssemblyStation", c), ontoObj, x, y, z, ontoView);
- treenode GroupNode =model().find("Tools/Groups");
- treenode ALL_AssemblyStations = GroupNode.find("AllStations");
- if(!ALL_AssemblyStations)
- {
- ALL_AssemblyStations = GroupNode.subnodes.assert("AllStations");
- }
- Group AllStations = Group("AllStations");
- AllStations.addMember(newProcessor);
- return newProcessor;
When I debug the code I didn't found any Issues. Can anyone let me know why this issue is happening? Is it because the object is not added to the model tree yet?
Thanks,
Praneeth.