question

Suhas H2 avatar image
0 Likes"
Suhas H2 asked Joerg Vogel commented

Create a part on the rack during Initialization logic

I want to create few number of parts on the racks in the initialiazation logic using code. I have tried using commands like Createinstance() and Createcopy() but in vain. Please help me with an example code or a model.

Thanks in advance!!

FlexSim 19.1.0
rackobject creationinitialization logic
· 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.

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel edited

The example of createcopy tells you in the manual the use of it.

This copy variant add a node to object acting as container. But there isn’t any further action for placing the item into a rack.
If you have a created item somewhere in your model, you can copy and insert it into an object. Then the copied item initiate the standard OnReceive actions like place in bay and place in level of a rack. The command is insertcopy.

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