setmetatag#
- ENS_MAT.setmetatag(tag: str, value: Any | None) None #
Change a value in the METADATA attribute
All ENSOBJ subclasses have a METADATA read only attribute that is viewed as a Python dictionary. A value can be set in that dictionary using this call:
- Parameters:
- tag
str
The string name of the METADATA tag to add/change.
- value
Any
,optional
The value to change to tag to. Note: this can be a string, int or float.
- tag
Examples
>>> session.ensight.objs.core.PARTS[0].setmetatag("FOO", "HELLO") >>> print(session.ensight.objs.core.PARTS[0].METADATA)