Idea

Arun Kr avatar image
5 Likes"
Arun Kr suggested Jason Lightfoot edited

Method To Find The Reference of Conveyor Points On a Conveyor Object

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.

  1. treenode CovPoints = token.ConvTypeUsed.as(Object).find(">variables/conveyorPoints");
  2.  
  3. for(int i=1;i<=CovPoints.subnodes.length;i++)
  4. {
  5. treenode Node = CovPoints.subnodes[i].value;
  6. treenode MassTransfer = ownerobject(Node);
  7. treenode FrMassTransfer = library.find("?EntryTransfer");
  8. if(classobject(MassTransfer) == FrMassTransfer)
  9. {
  10. return MassTransfer;
  11.  
  12. }
  13.  
  14. }

Regards,

Arun KR

coneyor module
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

No Comments

Your Opinion Counts

Share your great idea, or help out by voting for other people's ideas.

Related Ideas