Skip to content

Commit

Permalink
Fix/issue 3720 (#3735)
Browse files Browse the repository at this point in the history
* Add new Unite option

* Add new Unite option
  • Loading branch information
Samuelopez-ansys authored Oct 11, 2023
1 parent 5bc0330 commit eae9d83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyaedt/modeler/cad/Modeler.py
Original file line number Diff line number Diff line change
Expand Up @@ -4480,6 +4480,9 @@ def unite(self, unite_list, purge=False, keep_originals=False):
szSelections = self.convert_to_selections(objs)
vArg1 = ["NAME:Selections", "Selections:=", szSelections]
vArg2 = ["NAME:UniteParameters", "KeepOriginals:=", keep_originals]
if settings.aedt_version > "2022.2":
vArg2.append("TurnOnNBodyBoolean:=")
vArg2.append(True)
self.oeditor.Unite(vArg1, vArg2)
if szSelections.split(",")[0] in self.unclassified_names:
self.logger.error("Error in uniting objects.")
Expand Down

0 comments on commit eae9d83

Please sign in to comment.