MaterialGroup¶
-
class
MaterialGroup
¶ -
-
property
name
¶ The name of the group.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
list_materials
()¶ List the materials of this group.
-
remove
(force = False)¶ Delete a material group
Note
By default, only empty groups can be deleted (
NotEmptyError
is raised otherwise), useforce
to force deletion of non empty groups.- Parameters
force (bool) -- Force the deletion of the group even if it contains materials.
- Raises
NotEmptyError -- If
force
isFalse
and the group contains materials.ReadOnlyError -- If
Database
is in read only mode.
-
property