question

Andy_zp avatar image
0 Likes"
Andy_zp asked Jason Lightfoot edited

question floor storage

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?

FlexSim 22.2.0
floor storageflexsim script
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Jason Lightfoot edited

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.


capture1.png (32.4 KiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Andy_zp avatar image Andy_zp commented ·

谢谢您的回答

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

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 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.