Skip to content

Commit

Permalink
add check design type (#3746)
Browse files Browse the repository at this point in the history
Co-authored-by: Tiziana Bertoncelli <[email protected]>
  • Loading branch information
gmalinve and tizianrot authored Oct 23, 2023
1 parent f8c7692 commit ad12662
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyaedt/modeler/cad/Primitives2D.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,13 +283,13 @@ def create_region(self, pad_percent=300, is_percentage=True):
>>> oEditor.CreateRegion
"""
if not isinstance(pad_percent, list):
if self._app.xy_plane:
if self._app.design_type == "2D Extractor" or self._app.xy_plane:
pad_percent = [pad_percent, pad_percent, 0, pad_percent, pad_percent, 0]
else:
pad_percent = [pad_percent, 0, pad_percent, pad_percent, 0, pad_percent]

else:
if self._app.xy_plane:
if self._app.design_type == "2D Extractor" or self._app.xy_plane:
pad_percent = [pad_percent[0], pad_percent[1], 0, pad_percent[2], pad_percent[3], 0]

else:
Expand Down

0 comments on commit ad12662

Please sign in to comment.