How can I get the Exit transfer reference from the conveyor using code?

How can I get the Exit transfer reference from the conveyor using code?

paula_carneiro_martins
Not applicable
72 Views
4 Replies
Message 1 of 5

How can I get the Exit transfer reference from the conveyor using code?

paula_carneiro_martins
Not applicable

[ FlexSim 19.0.2 ]

In a conveyor has a lot of conveyor points.

I have the conveyor reference and I need to get the reference/name of the exit transfer, without centerport.

Is that possible?

19140-exit-transfer-reference.png

0 Likes
Accepted solutions (1)
73 Views
4 Replies
Replies (4)
Message 2 of 5

joshua_s
Not applicable
Accepted solution

using

getvarnode(Model.find("Conveyor1"), "conveyorPoints").subnodes[1].value.up.up.up

will reference the exit transfer object

Message 3 of 5

joerg_vogel_HsH
Mentor
Mentor

@Joshua S, I think you can get the object easier with "ownerobject" instead of the relative path "up.up.up".

Object convPoint1 = ownerobject(getvarnode(Model.find("Conveyor1"), "conveyorPoints").subnodes[1].value);
Message 4 of 5

joshua_s
Not applicable

@Jörg Vogel

Thank you, that is a much cleaner approach.

Message 5 of 5

jason_lightfootVL7B4
Autodesk
Autodesk

The conveyorPoints node contains photoeyes, decision points, stations and other objects. To find transfers see this post.

0 Likes