How do I retrieve a slot's padding values in code?? I would like to calculate a slot's available space by subtracting its padding volume from its physical size. Thanks.
How do I retrieve a slot's padding values in code?? I would like to calculate a slot's available space by subtracting its padding volume from its physical size. Thanks.
There are several properties on the Storage Object that you can get by using the getProperty() method. For example, to get the slot padding on the left side:
Storage.Object rack = Model.find("Rack1"); return rack.getProperty("SlotPaddingLeft");
The other slot padding properties are SlotPaddingRight, SlotPaddingTop, SlotPaddingBottom, SlotPaddingBack, SlotPaddingFront.
If the slot padding value is uniform across the storage object it will return a single number value. However, if it is not uniform you'll get an array of some sort depending on how uniform the padding value is within a bay/level.
For example, if it's uniform within each bay (every slot in Bay1 has left slot padding of 0.25 but every slot in Bay2 has 0.5 ) it would look like:
[0.25, 0.50]
If you had two levels and Level1 had 0.5 and Level 2 had 0.25 it would look like:
[[0.50, 0.25], [0.50, 0.25]]
14 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