question

Paula Carneiro Martins avatar image
0 Likes"
Paula Carneiro Martins asked Jason Lightfoot edited

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

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?

FlexSim 19.0.2
conveyorexit transferreferenceconveyor points
5 |100000

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

1 Answer

·
Joshua S avatar image
1 Like"
Joshua S answered Jason Lightfoot edited

using

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

will reference the exit transfer object

· 3
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 ·

@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);
1 Like 1 ·
Joshua S avatar image Joshua S Joerg Vogel commented ·

@Jörg Vogel

Thank you, that is a much cleaner approach.

1 Like 1 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Joerg Vogel commented ·

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

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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