Set Slot Stacking Order Rack using FlexScript

Set Slot Stacking Order Rack using FlexScript

julius_j2
Not applicable
89 Views
3 Replies
Message 1 of 4

Set Slot Stacking Order Rack using FlexScript

julius_j2
Not applicable

[ FlexSim 21.2.0 ]

Hi! I want to make an easy dashboard to create array of rack. However, I have some difficulties in setting the rack properties, since I want to make the rack multi-deep. One of which is to set the Slot Stacking Order property. How can I set it using FlexScript? Thank you.

1645691842854.png

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

moehlmann_fe
Explorer
Explorer
Accepted solution

The slot stacking order is represented by the "stackingAxis1-3" nodes in the racks variables.

1645704287083.png

These can be set using "object.setProperty("SlotStackingAxis1", value)". Possible values are the numbers 1-6 which represent the directions as follows: X+, X-, Y+, Y-, Z+, Z-

0 Likes
Message 3 of 4

julius_j2
Not applicable
Thank you for your help! This would help me to set other properties. One more question, why is the setProperty first argument is "SlotStackingAxis1" and not "stackingAxis1" ?
0 Likes
Message 4 of 4

moehlmann_fe
Explorer
Explorer

When switching from the now deprecated "setVariable()" to "setProperty()" the developers chose to use different arguments rather than the node names. I can't say for certain why, possibly to be closer to the actual name that appears in the properties (for example the process time of the processor is now called "ProcessTime" instead of the previous "cycletime").

Generally, all available properties should be listed in the reference section of the user manual.

(Example for processor: https://docs.flexsim.com/en/22.0/Reference/3DObjects/FixedResources/Processor/Processor.html#propert...)