I try to store 15 boxes in certain bay, level and slot, e.g. slot(2, 3, 1), by using FlexScript. But it stored all boxes in slot(1, 1, 1), which is not follow the assignment.
I try to store 15 boxes in certain bay, level and slot, e.g. slot(2, 3, 1), by using FlexScript. But it stored all boxes in slot(1, 1, 1), which is not follow the assignment.
To assign a slot to an item you need a pointer reference to that item. Which your code doesn't have. This also means that the item must exist in the first place, so you can't assign slots before the start of the model. It has to happen during the runtime.
One option would be to assign the slot in the On Creation trigger of the source. This trigger provides a pointer to the created item.
19 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