SysMLUtil#

class ansys.sam.sysml2.builder.classes.sysml_util.SysMLUtil#

Provides utility methods for SysML element name resolution and class lookup.

Overview#

check_inherited_name

Check and return the name of the element.

check_sysml_inherited_name

Check and return the name of the element.

get_sysml_constructor

Get the class constructor from type.

Import detail#

from ansys.sam.sysml2.builder.classes.sysml_util import SysMLUtil

Method detail#

static SysMLUtil.check_inherited_name(element: ansys.sam.sysml2.classes.sysml_element.SysMLElement) str#

Check and return the name of the element.

static SysMLUtil.check_sysml_inherited_name(element: ansys.sam.sysml2.meta_model.element.Element) str#

Check and return the name of the element.

static SysMLUtil.get_sysml_constructor(element_type: str) ansys.sam.sysml2.meta_model.e_object.EObject#

Get the class constructor from type.