Skip to content

Commit

Permalink
Merge branch 'main' into release/0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuelopez-ansys committed Apr 19, 2024
2 parents 4aa217d + 25ce6a5 commit 71ae629
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyaedt/modules/SolveSetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1945,6 +1945,7 @@ def _get_net_names(self, app, file_fullname):
if pad_ind not in obj_dict:
obj_dict[pad_ind] = aedtapp.modeler.objects[pad_ind]
obj_list = list(obj_dict.values())
net = net.replace(".", "_")
if len(obj_list) == 1:
net = net.replace("-", "m")
net = net.replace("+", "p")
Expand All @@ -1954,14 +1955,13 @@ def _get_net_names(self, app, file_fullname):
elif len(obj_list) > 1:
united_object = aedtapp.modeler.unite(obj_list, purge=True)
obj_ind = aedtapp.modeler.objects[united_object].id
try:
if obj_ind:
net = net.replace("-", "m")
net = net.replace("+", "p")
net_name = re.sub("[^a-zA-Z0-9 .\n]", "_", net)
aedtapp.modeler.objects[obj_ind].name = net_name
aedtapp.modeler.objects[obj_ind].color = [randrange(255), randrange(255), randrange(255)]
except Exception:
pass

if aedtapp.design_type == "Q3D Extractor":
aedtapp.auto_identify_nets()
aedtapp.close_project(save_project=True)
Expand Down

0 comments on commit 71ae629

Please sign in to comment.