SysMLTools#

class ansys.sam.sysml2.tools.sysmltools.SysMLTools#

Provides the static class for all SysML tools.

Overview#

isinstance

Check the type of an element.

Import detail#

from ansys.sam.sysml2.tools.sysmltools import SysMLTools

Method detail#

static SysMLTools.isinstance(element, element_type: str) bool#

Check the type of an element.

Parameters:
elementSysMLElement

Element to check.

element_typestr

SysML class name.

Returns:
bool

True if yes, False otherwise.