question

Julius J2 avatar image
0 Likes"
Julius J2 asked Felix Möhlmann commented

Set Slot Stacking Order Rack using FlexScript

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

FlexSim 21.2.0
flexscriptrackwarehousecoding
1645691842854.png (42.7 KiB)
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 Felix Möhlmann commented

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-


1645704287083.png (29.3 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.

Julius J2 avatar image Julius J2 commented ·
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 0 ·
Felix Möhlmann avatar image Felix Möhlmann Julius J2 commented ·

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#properties)

1 Like 1 ·