Hello everyone,
I am trying to create objects in different slots.
I use the Create Object object in my process flow, but I cant find a way to send the objects in diferent positions.
Is there any way to achieve this ?
Hello everyone,
I am trying to create objects in different slots.
I use the Create Object object in my process flow, but I cant find a way to send the objects in diferent positions.
Is there any way to achieve this ?
Hi @Rania A, wasFelix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom . 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.
Create the object somewhere else first. Then assign the slot to the object. Then move the object into the storage object the assigned slot belongs to. It's functionally the same as if the object was created in the slot if there is no delay.
Assigning the slot and getting the corresponding storage object is already demontrated in your previous question.
WIth "create the object somewhere else" I meant to place the item in another object (or the model itself).
Afterwards you assign the slot and move the object into the storage object.
/**Custom Code*/ Object current = param(1); treenode activity = param(2); Token token = param(3); Object item = param(4); Array flowitems = param(4); treenode processFlow = ownerobject(activity); int sourceLabel = gettablenum("Task", 1, 2); treenode destinationStation; if (sourceLabel >= 4) { // Find the slot with the matching label Storage.Slot slot = Storage.system.findSlot("WHERE Position == "+sourceLabel,0,token); Storage.Item storageItem = Storage.Item(token.item); storageItem.assignedSlot = slot; destinationStation = slot.storageObject; } return destinationStation;
In the move object i scripted it like that. It works fine if only one item is created. However, I dont know how I can send the second item to another position. I select my positions based on values from my global table "Task"
15 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