EObject#

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

Base class of the metamodel.

Overview#

get

Find an owned or inherited element by name; reuse the cached proxy when present.

get_value

Return the value of the feature.

delete

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

set_value

Update the Feature value.

id

Get the id of the element.

identifier

Get the identifier of the element.

__dir__

Expose the public SysML API only: hide single-underscore backing fields.

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.__dir__()#

Expose the public SysML API only: hide single-underscore backing fields.

EObject.get(element_name: str) → Element | None#

Find an owned or inherited element by name; reuse the cached proxy when present.

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.set_value(new_value: str | int | float | bool)#

Update the Feature value.