MaterialGroup

class MaterialGroup
property id

The id of the group.

Type

str, read-only

property name

The name of the group.

Type

str

Raises

ReadOnlyError -- If Database is in read only mode.

list_materials()

List the materials of this group.

Returns

The list of materials in the group.

Return type

list(Material)

remove(force = False)

Delete a material group

Note

By default, only empty groups can be deleted (NotEmptyError is raised otherwise), use force to force deletion of non empty groups.

Parameters

force (bool) -- Force the deletion of the group even if it contains materials.

Raises