Bolt Pretension Force Result Unit conversion
1990chs
Member Posts: 44
**
Now I want to get bolt pretension force result and want to convert the unit to N.
But using units module to get the force unit is 'tonne mm sec^-1 sec^-1', I am't not sure my conversion codes is right or not?
import units analysis = Model.Analyses[0] reader = analysis.GetResultsData() BoltPreForece = reader.GetResult('BOLT') # BoltPreForece.GetComponentInfo('LOAD').Unit # 'tonne mm sec^-1 sec^-1' BoltPreForeceUnit = BoltPreForece.GetComponentInfo('LOAD').Unit BoltPreForceConve = units.ConvertUnit(1.0, BoltPreForeceUnit, 'N', 'Force')
Tagged:
0
Answers
-
Hello, you can read directly the information on the units.ConvertUnit
value to convert
the unit of the given value
the target unit
the quantity nameYou can also find additional examples in the help:
Regards,
0 -
@Abel Ramos said:
Hello, you can read directly the information on the units.ConvertUnitvalue to convert
the unit of the given value
the target unit
the quantity nameYou can also find additional examples in the help:
Regards,
Thanks!
0