SysMLElement#

class ansys.sam.sysml2.classes.sysml_element.SysMLElement(element_id: str)#

Provides the Python base class for all SysML elements.

Overview#

get_value

Get the value of the feature.

parse_and_set_value

Parse the value and create the valuation part in the feature.

set_value

Update the feature value.

delete

Delete the element from the model via the observer’s commit to the server.

__dir__

Get the attribute list from the real element.

__getattr__

Get the attribute from the real element.

__setattr__

Intercept attribute assignment and notify the modification observer.

Import detail#

from ansys.sam.sysml2.classes.sysml_element import SysMLElement

Method detail#

SysMLElement.__dir__()#

Get the attribute list from the real element.

SysMLElement.__getattr__(name)#

Get the attribute from the real element.

SysMLElement.__setattr__(name: str, value: object)#

Intercept attribute assignment and notify the modification observer.

Parameters:
namestr

Name of the key.

valueobject

Value of the key.

SysMLElement.get_value()#

Get the value of the feature.

SysMLElement.parse_and_set_value(value: str)#

Parse the value and create the valuation part in the feature.

SysMLElement.set_value(new_value: str | int | float | bool)#

Update the feature value.

SysMLElement.delete()#

Delete the element from the model via the observer’s commit to the server.