Modifying units in an existing model in Motionview without destroying the model
Hi,
I tried modifying the units with:
from hw import mview
mod = mview.getModel()
mod.units.length = 'METER'
but it seems like the entire model falls apart because of the change. Is there a quick fix to this problem?
Thank you,
Linn
Best Answer
-
Hi Linn,
MotionView does not automatically update the units. For example if you have a motion set to a displacement of 100 mm. Then you change the units from MM to M. The motion value will not update to 0.1 meters. Instead it will be 100 m.
Unfortunately, you will need to go and update the values. A faster way would be to use Data Summary to export the values in excel, update the values and reimport the excel file.
Best,
Christopher Fadanelli
2
Answers
-
Hi Linn,
MotionView does not automatically update the units. For example if you have a motion set to a displacement of 100 mm. Then you change the units from MM to M. The motion value will not update to 0.1 meters. Instead it will be 100 m.
Unfortunately, you will need to go and update the values. A faster way would be to use Data Summary to export the values in excel, update the values and reimport the excel file.
Best,
Christopher Fadanelli
2 -
Hi Linn,
The units for the model can be easily modified in the Solver Units DataSet (DS_Units). Here, the force, length, mass, and time units can be modified.
Hope this helps!
Adam Reid
2