Skip to content

Commit

Permalink
Use Get3DComponentDefinitionNames to obtain 3DComponent instances
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuelopez-ansys committed Jan 14, 2025
1 parent 334d730 commit 6aeb343
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ansys/aedt/core/modules/boundary/layout_boundary.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ def _child_object(self):
"""
child_object = None
for el in self._app.oeditor.GetChildNames("ComponentDefinition"):
component_definition = self._app.oeditor.Get3DComponentDefinitionNames()

for el in component_definition:
design_childs = self._app.get_oo_object(self._app.oeditor, el).GetChildNames()
if self._name in design_childs:
child_object = self._app.get_oo_object(self._app.oeditor, f"{el}\\{self._name}")
Expand Down

0 comments on commit 6aeb343

Please sign in to comment.