Background: I have created a curved conveyor through custom code in a process flow:
newConveyor = createinstance(node("conveyor/CurvedConveyor", library()), model());
Goal: I want to convert this "newConveyor" into a conveyor with a "Custom" type using FlexSim Code.
Reason: I am doing this mainly to try and get around this one issue that throws an error; if I use the createcopy(__) command instead of createinstance(__) for conveyor, I get this error:
time: 2.032000 exception: Exception caught in TreeNode::receivemessage() time: 2.032000 exception: EditorSpatial::prepareDraw() time: 2.192000 exception: Exception Caught in ObjectFunction251__project_library_FlexSimObject_behaviour_eventfunctions_OnPreDraw object: /