question

Sean avatar image
0 Likes"
Sean asked Phil BoBo answered

How to get each bay's width using FlexScript?

Hi

How to get each bay's width using FlexScript? I know getvarnum(Model.find("Rack1"), "tempBayWidth") can print bay's width. But if there are different width, this value is uncorrect.

For instance, width of bay 4 and bay 7 are different from other bays,how can I get these two width values using FlexScript.Thank's.width.png

FlexSim 22.2.2
bays
width.png (18.9 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

·
Phil BoBo avatar image
0 Likes"
Phil BoBo answered Phil BoBo edited

All the values in the Dimensions window are stored in the Dimensions property:

Object rack = Model.find("Rack1");
var dimensions = rack.getProperty("Dimensions");
return dimensions.BaySize;
5 |100000

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

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.