Skip to content

Commit

Permalink
FIX: aedt_name (#883)
Browse files Browse the repository at this point in the history
Co-authored-by: ring630 <@gmail.com>
  • Loading branch information
hui-zhou-a authored Nov 6, 2024
1 parent faf0332 commit 62e93fa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pyedb/dotnet/edb_core/cell/primitive/primitive.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,17 +580,17 @@ def aedt_name(self):
_, name = self._edb_object.GetProductProperty(self._pedb._edb.ProductId.Designer, 1, val)
name = str(name).strip("'")
if name == "":
if str(self.primitive_type) == "Path":
if str(self.primitive_type).lower() == "path":
ptype = "line"
elif str(self.primitive_type) == "Rectangle":
elif str(self.primitive_type).lower() == "rectangle":
ptype = "rect"
elif str(self.primitive_type) == "Polygon":
elif str(self.primitive_type).lower() == "polygon":
ptype = "poly"
elif str(self.primitive_type) == "Bondwire":
elif str(self.primitive_type).lower() == "bondwire":
ptype = "bwr"
else:
ptype = str(self.primitive_type).lower()
name = "{}_{}".format(ptype, self.id)
name = "{}__{}".format(ptype, self.id)
self._edb_object.SetProductProperty(self._pedb._edb.ProductId.Designer, 1, name)
return name

Expand Down

0 comments on commit 62e93fa

Please sign in to comment.