Skip to content

Commit

Permalink
dummy cutout fix (#810)
Browse files Browse the repository at this point in the history
  • Loading branch information
svandenb-dev authored Feb 3, 2022
1 parent 887d895 commit 8ce66b6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pyaedt/edb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,9 +1049,6 @@ def create_cutout_on_point_list(
point_list = [[self.arg_with_dim(i[0], units), self.arg_with_dim(i[1], units)] for i in point_list]
plane = self.core_primitives.Shape("polygon", points=point_list)
polygonData = self.core_primitives.shape_to_polygon_data(plane)
self.core_primitives.create_polygon(
plane, list(self.core_stackup.signal_layers.keys())[0], net_name="DUMMY_CUTOUT"
)

_ref_nets = []
# validate references in layout
Expand All @@ -1061,6 +1058,11 @@ def create_cutout_on_point_list(
net_signals = List[type(_ref_nets[0])]()
# Create new cutout cell/design
_cutout = self.active_cell.CutOut(net_signals, _netsClip, polygonData)
layers = self.core_stackup.stackup_layers.signal_layers
for layer in list(layers.keys()):
layer_primitves = self.core_primitives.get_primitives(layer_name=layer)
if len(layer_primitves) == 0:
self.core_primitives.create_polygon(plane, layer, net_name="DUMMY")
self.logger.info("Cutout %s created correctly", _cutout.GetName())
id = 1
for _setup in self.active_cell.SimulationSetups:
Expand Down

0 comments on commit 8ce66b6

Please sign in to comment.