model_units#

property Modeler2D.model_units#

Model units as a string. For example, "mm".

This property allows you to get or set the model units. When setting the model units, you can specify whether to rescale the model by adjusting the rescale_model attribute.

References

>>> oEditor.GetModelUnits
>>> oEditor.SetModelUnits

Examples

>>> from ansys.aedt.core import hfss
>>> hfss = Hfss()
>>> hfss.modeler.model_units = "cm"
>>> hfss.modeler.rescale_model = True
>>> hfss.modeler.model_units = "mm"