Conveyor entry /exit transfer generic code?

Conveyor entry /exit transfer generic code?

rajankur6494
Advocate Advocate
25 Views
3 Replies
Message 1 of 4

Conveyor entry /exit transfer generic code?

rajankur6494
Advocate
Advocate

[ FlexSim 23.1.0 ]

Hi Team,

I would like to know if there is any generic code available to get entry/exit transfer of conveyor. It will speed up the process using copy/paste from one conveyor to another conveyor object of same type.

For example: We can get any in object reference using current.inObjects[1].

Thank you!

0 Likes
Accepted solutions (1)
26 Views
3 Replies
Replies (3)
Message 2 of 4

natalie_white
Not applicable
0 Likes
Message 3 of 4

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

I've already sent in a request to be able to find references to conveyors from conveyor transfer objects using a supported api/class/method strucure.

At the moment you need look through the conveyorPoints and determine which points your might be interested in - the conveyorPoints includes references to decisionPoints, photoeyes, stations, inline and side transfers and transfers to fixed resources.

This code finds transfers to fixed resources:

Object conv=Model.find("StraightConveyor1");
Array transfers=[];
Object frTransfer=library().find("?FRTransfer");
Object o;
forobjectlayerunder(getvarnode(conv,"conveyorPoints")){
    o=node("+/~",a);
    if (classobject(classobject(o))==frTransfer)
        transfers.push(o);
}
return transfers;
0 Likes
Message 4 of 4

julie_weller
Not applicable

Hi @Ankur A3, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes