AnsweredAssumed Answered

Anybody know how to get what the units are for surface area?

Question asked by Eric Snyder on Feb 27, 2020
Latest reply on Feb 27, 2020 by Eric Snyder

Using the API there are various places to get or set settings namely:
modelExtension.GetUserPreferenceDouble()

modelExtension.GetUserPreferenceInteger()

modelExtension.GetUserPreferenceString()

modelExtension.GetUserPreferenceTextFormat()

modelExtension.GetUserPreferenceToggle()

and

model.GetUnits()

When you get Mass Properties it returns surface area as well. I am certain that underneath the surface it is calculating in square meters the same way it uses M,Kg,Second and then translates to the users unit setting. I have been looking for an hour now and cannot find how to get or set the units for surface area (cc2, M2, in2...etc).

 

Perhaps it just uses the selected choice for volume (cubic meters, cubic inches, etc) and just uses square meters, square inches, etc???

 

Does anybody know how to use the API to get or set the units for surface area display?

Outcomes