question

Axel Kohonen avatar image
1 Like"
Axel Kohonen asked Matthew Gillespie edited

Create a straight conveyor in code?

Hi,

I have a model in which I need basic straight conveyors and then I want to add some photo eyes and decision points to them in code. I want to automate this for multiple of conveyors so it has to be made in code. Is it possible to create a straight conveyor from the library with createinstance like with the rack below

createinstance(node("/fixedresources/Rack",library()),racksContainer);

or do I have to create a straight conveyor somewhere in the model and then copy it? I could only find the conveyor and basic conveyor object in the model library and I could not figure out how to make this into a straight conveyor object.

Thank you!

Kind regards,

Axel

FlexSim 16.0.1
conveyorcodeautobuildcreateinstance
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

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered Axel Kohonen commented
createinstance(node("conveyor/StraightConveyor", library()), model())
createinstance(node("conveyor/CurvedConveyor", library()), model())
· 1
5 |100000

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

Axel Kohonen avatar image Axel Kohonen commented ·

Thank you Matthew! Did not know that there were more instances in the folders.

0 Likes 0 ·