Hi Everyone,
Getting the reference of the conveyor points on a conveyor object is something I am always struggling with. Always I have to look up the conveyor points node and then identify the conveyor point object and get the reference. This process is time-consuming. If FlexSim can provide a method or direct reference of conveyor points in the conveyor tree node structure it will be helpful.
For eg: I have to always write a code like this to get the conveyor point reference whether it's an entry transfer, exit transfer, photo eye, or a decision point.
- treenode CovPoints = token.ConvTypeUsed.as(Object).find(">variables/conveyorPoints");
- for(int i=1;i<=CovPoints.subnodes.length;i++)
- {
- treenode Node = CovPoints.subnodes[i].value;
- treenode MassTransfer = ownerobject(Node);
- treenode FrMassTransfer = library.find("?EntryTransfer");
- if(classobject(MassTransfer) == FrMassTransfer)
- {
- return MassTransfer;
- }
- }
Regards,
Arun KR