question floor storage

question floor storage

wangxu_zp
Not applicable
20 Views
3 Replies
Message 1 of 4

question floor storage

wangxu_zp
Not applicable

[ FlexSim 22.2.0 ]

How can I use a script language to set parameters such as bay, level, etc. when performing batch generation of floor storage through a script?

0 Likes
Accepted solutions (1)
21 Views
3 Replies
Replies (3)
Message 2 of 4

moehlmann_fe
Observer
Observer
Accepted solution

Number and sizes of bays/levels/slots can be set using function_s() with the function names below.

function_s(rack, "setNumBays", num);
function_s(rack, "setNumLevels", num); function_s(rack, "setNumSlots", num); function_s(rack, "setBaySize", size); function_s(rack, "setLevelSize", size); function_s(rack, "setSlotSize", size);

You can find these and some others by exploring the structure/tree of the dimension edit window of a rack object.

capture1.png

Note that forward compatability is not guaranteed for the function_s expressions.

0 Likes
Message 3 of 4

wangxu_zp
Not applicable

谢谢您的回答

0 Likes
Message 4 of 4

jason_lightfootVL7B4
Autodesk
Autodesk

You can set these properties using rack.setProperty(). The dimensional properties are listed here along with a description of the values required and the use of arrays in setting mixed values.

0 Likes