cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

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.

treenode CovPoints = token.ConvTypeUsed.as(Object).find(">variables/conveyorPoints");

for(int i=1;i<=CovPoints.subnodes.length;i++)
{
treenode Node = CovPoints.subnodes.value;
treenode MassTransfer = ownerobject(Node);
treenode FrMassTransfer = library.find("?EntryTransfer");
if(classobject(MassTransfer) == FrMassTransfer)
{
return MassTransfer;

}

}

Regards,

Arun KR

2 Comments
@Arun Kr, I can understand your request. But you know others struggle with this issue, too, even developers. Some get by this through groups, they create them dynamically in larger Process Flow templates like in AGV. You could work with template objects, that move to groups automatically when they are dragged into a model. You can set labels and push dragged objects onto lists. I think an object property would be fine, but developers would restrict by this opportunities to use other individual concepts.

Groups are not object attributes so do not scale to allow generic code - hence the need for conveyor class methods/ API.

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea