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.

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

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.

Joerg Vogel avatar image Joerg Vogel commented ·
@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.
-1 Like -1 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Joerg Vogel commented ·

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

1 Like 1 ·

No Comments

·

Write a Comment

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

Your Opinion Counts

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

Related Ideas