question

Diego VG avatar image
0 Likes"
Diego VG asked Diego VG commented

Is it possible to resize an elevator bank through flexscript?

Good morning,

I would like to know if it would be possible to resize both in height and length (nb of lifts in the bank) an elevator bank by using flexscript. Of course I do know it is possible throught the drag arrows for resize but I wondered if we could do this through flexscript too and how.

Thank you very much for your help and have a nice year!

FlexSim 21.0.1
people moduleflexsim 21.0.1elevator bank
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

Pedro Ortelani avatar image
0 Likes"
Pedro Ortelani answered Diego VG commented

Good morning @Diego VG,

Yes, it is possible to resize objects with a 3D model via flexscript.

You can do it by getting the object reference, then casting it to be a Object, than you can access its size atribute and set size values to the x, y and z axis.

Here is an example on how to do it to a Elevator.

  1. Model.find("Elevator1").as(Object).size.x = 100;

In this example I am resizing the Elevator on axis x to the value 100.

I hope that helps!

· 3
5 |100000

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