Skip to content

Commit

Permalink
bug fix (#1724)
Browse files Browse the repository at this point in the history
  • Loading branch information
hui-zhou-a authored Sep 21, 2022
1 parent 63aa93c commit 9db06cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyaedt/modeler/Model3DLayout.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from pyaedt import settings
from pyaedt.edb import Edb
from pyaedt.generic.constants import AEDT_UNITS
from pyaedt.generic.general_methods import _pythonver
from pyaedt.generic.general_methods import _retry_ntimes
from pyaedt.generic.general_methods import generate_unique_name
Expand Down Expand Up @@ -152,7 +153,7 @@ def model_units(self):
def model_units(self, units):
assert units in AEDT_UNITS["Length"], "Invalid units string {0}.".format(units)
"""Set the model units as a string (for example, "mm")."""
self.oeditor.SetActivelUnits(["NAME:Units Parameter", "Units:=", units, "Rescale:=", False])
self.oeditor.SetActiveUnits(["NAME:Units Parameter", "Units:=", units, "Rescale:=", False])

@property
def primitives(self):
Expand Down

0 comments on commit 9db06cc

Please sign in to comment.