ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
ESEric Snyder27/02/2020

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?