setattrs#

ENS_FLIPBOOK.setattrs(values: dict, all_errors: int = 0) None#

Set the values of a collection of attributes

Parameters:
valuesDict

The values to set. The keys are the attribute IDs.

all_errorsint

If non-zero, raise a RuntimeError exception if any attribute set operation fails. By default, 0.

Examples

These commands are equivalent

>>> part.VISIBLE = True
>>> part.setattrs(dict(VISIBLE=True))
>>> part.setattrs({session.ensight.objs.enums.VISIBLE: True})