question

anon-user avatar image
0 Likes"
anon-user asked Matthew Gillespie answered

When copying an object, the unit system is not modified

I have two data for the FlexSim model.

Data 1 has a unit system of millimeters

Data 2 has a unit system of meters.


I'm trying to copy some objects from model data with a unit system of millimeters to model data with a unit system of meters.


When copying an object, the unit system is not modified,

so the object becomes 1000 times larger.


Is there any solution?

For example, are there any commands or scripts that reduce the size of the selected object to 1/1000?

Or is there a way to fix it by setting the model tree?


FlexSim 20.1.3
flexsim 20.1.3commandsmodel unitsunits
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

Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered

This script will make the object 1000 times smaller:

Object obj = Model.find("Processor1");
obj.size = obj.size / 1000;
5 |100000

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