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!!
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!!
Please add a source to the model, then you change the arrival style to Arrival Schedule of this source. You set the quantity in the table for the Arrival Time 0 to the wished initial content of the rack. The purpose of this source is just to fill the rack a time 0.
Whether can we create the part on racks using code. I agree for this condition we can use 'Source' and the option you suggested. There are other places, like for storing so many parts on racks would consume memory and also make the model slow. So let me know how to create a part using code.
Hi @Suhas H2,
Did Joerg's answer solve your problem? If so, can you accept his answer? If not, how else can we help?
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.
Thanks for the reply @Jörg Vogel!!!
I was actually modelling a warehousing were i have an assembly of part(Product) which have more than 50 parts on a pallet. Thousands of such Product while hang the system and also slowdown my model. To eliminate this problem I thought of destroying the Product when i am storing it into the racks. Creating them again when i am retrieving it again from the racks. For mimicking this action i will need to know the procedure to create this Product when my ASRS approaches the rack. Please help me with example model to create this.
I am sorry, I can’t help you in this module, I am still learning to create a warehouse rack by myself. But you find the article here, which contains a demo model. Therein is a process, that creates an initial stock. I assumed you have built a classic rack, because you set at your question FlexSim Version 19.1.
But I recommend not to create pallets with thousands of products on them just to destroy them again. You can put your products data into labels at the pallet. If you receive the pallet from the rack, then you can create the products instantly.
A really easy approach creates all needed types of items in several sources just once and places them in queues somewhere far away in the model. Whenever you need such a product type you use the insertcopy command to place a product copy from the queues onto a pallet.
You fill visually the rack with shapes of filled pallets of drawsurrogate objects. You must create such shapes outside of FlexSim. You set the location of the drawsurrogate object that it looks like the slot is filled. If you carry the pallet by an ASRS vehicle you create OnLoad the filled pallet and hide the shape of the drawsurrogate object in the rack
similar to the code in the above picture.
11 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved