diff --git a/pyaedt/modeler/cad/elements3d.py b/pyaedt/modeler/cad/elements3d.py index c609c3855f5..10bfc545700 100644 --- a/pyaedt/modeler/cad/elements3d.py +++ b/pyaedt/modeler/cad/elements3d.py @@ -1396,12 +1396,15 @@ def __init__(self, node, child_object, first_level=False, get_child_obj_arg=None self.children = {} self.auto_update = True name = None - if get_child_obj_arg is None: - child_names = [i for i in list(child_object.GetChildNames()) if not i.startswith("CachedBody")] - else: - child_names = [ - i for i in list(child_object.GetChildNames(get_child_obj_arg)) if not i.startswith("CachedBody") - ] + try: + if get_child_obj_arg is None: + child_names = [i for i in list(child_object.GetChildNames()) if not i.startswith("CachedBody")] + else: + child_names = [ + i for i in list(child_object.GetChildNames(get_child_obj_arg)) if not i.startswith("CachedBody") + ] + except Exception: # pragma: no cover + child_names = [] for i in child_names: if not name: name = i diff --git a/pyaedt/rmxprt.py b/pyaedt/rmxprt.py index 93e7a4d84a9..83dfe31e7b3 100644 --- a/pyaedt/rmxprt.py +++ b/pyaedt/rmxprt.py @@ -43,7 +43,7 @@ def __init__(self, app): @property def properties(self): - """Object history. + """Object parameters. Returns ------- @@ -121,7 +121,7 @@ class Shaft(RMXprtModule): class Machine(RMXprtModule): """Provides rotor properties.""" - component = "" + component = "General" class Circuit(RMXprtModule):