ModelReader#
- class ansys.sam.sysml2.tools.model_reader.ModelReader#
Read metamodel elements with a single snake_case property vocabulary.
Overview#
Return the class used to wrap an inherited element under a parent part. |
|
Read a field of |
|
Return the real element, without the wrapper that ties it to a parent part. |
|
Tell whether |
|
Tell whether |
|
Return every feature that |
Import detail#
from ansys.sam.sysml2.tools.model_reader import ModelReader
Method detail#
- ModelReader.get_inherited_element_class()#
Return the class used to wrap an inherited element under a parent part.
- ModelReader.get(element, key, default=None)#
Read a field of
elementby its snake_case property name.
- ModelReader.unwrap(element)#
Return the real element, without the wrapper that ties it to a parent part.
- ModelReader.is_a(element, base)#
Tell whether
elementis abase(a Feature, a Type, a Namespace…).
- ModelReader.is_chaining(element)#
Tell whether
elementreaches its target through a chain of features.
- ModelReader.redefined_features(feature)#
Return every feature that
featureredefines, directly or indirectly.