EObject#

class ansys.sam.sysml2.meta_model.e_object.EObject(element_id: str)#

Base class of the metamodel.

Overview#

get

Find an owned element by its name.

get_value

Return the value of the feature.

delete

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

parse_and_set_value

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

set_value

Update the Feature value.

id

Get the id of the element.

identifier

Get the identifier of the element.

Import detail#

from ansys.sam.sysml2.meta_model.e_object import EObject

Property detail#

property EObject.id#

Get the id of the element.

property EObject.identifier#

Get the identifier of the element.

Method detail#

EObject.get(element_name: str) Element#

Find an owned element by its name.

Parameters:
element_namestr

Element name

Returns:
Element

The Element or None if not found

EObject.get_value()#

Return the value of the feature.

EObject.delete()#

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

EObject.parse_and_set_value(value: str)#

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

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

Update the Feature value.