Skip to content

Commit

Permalink
FIX: PolygonDefData set_hole_parameters by PolygonData
Browse files Browse the repository at this point in the history
  • Loading branch information
chenchienjacklin committed Nov 13, 2024
1 parent f5dd239 commit 8d83202
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/ansys/edb/core/definition/padstack_def_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,9 @@ def get_hole_parameters(self):
"""
return self.get_pad_parameters(None, PadType.HOLE)

def set_hole_parameters(self, offset_x, offset_y, rotation, type_geom, sizes):
def set_hole_parameters(
self, offset_x, offset_y, rotation, type_geom=None, sizes=None, fp=None
):
"""
Set hole parameters.
Expand All @@ -281,13 +283,15 @@ def set_hole_parameters(self, offset_x, offset_y, rotation, type_geom, sizes):
Y offset.
rotation : :class:`.Value`
Rotation.
type_geom : PadGeometryType
Pad geometry type.
sizes : List[:class:`.Value`]
List of pad sizes.
type_geom : PadGeometryType, default: None
Pad geometry type. The default is ``None`` if setting polygonal pad parameters.
sizes : List[:class:`.Value`], default: None
List of pad sizes. The default is ``None`` if setting polygonal pad parameters.
fp : :class:`.PolygonData`, default: None
Polygon geometry. The default is ``None`` if not setting polygonal pad parameters.
"""
return self.set_pad_parameters(
-1, PadType.HOLE, offset_x, offset_y, rotation, type_geom, sizes
-1, PadType.HOLE, offset_x, offset_y, rotation, type_geom, sizes, fp
)

@property
Expand Down

0 comments on commit 8d83202

Please sign in to comment.