question

Ankur A3 avatar image
0 Likes"
Ankur A3 asked Julie Weller commented

Conveyor entry /exit transfer generic code?

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!

FlexSim 23.1.0
conveyorcodeentry transfergeneric
· 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.

Natalie White avatar image Natalie White commented ·

Hi @Ankur A3,

I believe this previously asked question will help you!

https://answers.flexsim.com/questions/66330/how-can-i-get-the-exit-transfer-reference-from-the.html

0 Likes 0 ·
Julie Weller avatar image Julie Weller commented ·

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

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

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;
5 |100000

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