Model¶
-
class
Model
¶ -
-
property
name
¶ The name of the model.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
lighting_mode
¶ The current lighting mode.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property
active_visibility_layer
¶ The current active visibility layer.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
find_lighting_layer
(id)¶ Find a lighting layer by id.
- Parameters
id (str) -- Layer id to find.
- Returns
The lighting layer found or
None
if not found.- Return type
- Raises
InvalidIdFormat -- If
id
is not in GUID format.
-
list_lighting_layers
()¶ List the lighting layers of the model.
- Returns
The list of lighting layers of the model.
- Return type
-
create_lighting_layer
(name)¶ Create a new lighting layer in this model.
- Parameters
name (str) -- Name of the layer.
- Returns
The newly created layer.
- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
find_visibility_layer
(id)¶ Find a visibility layer by id.
- Parameters
id (str) -- Layer id to find.
- Returns
The visibility layer found or
None
if not found.- Return type
- Raises
InvalidIdFormat -- If
id
is not in GUID format.
-
list_visibility_layers
(recursive = True)¶ List the visibility layers of the model.
-
create_visibility_layer
(name)¶ Create a new visibility layer in this model.
- Parameters
name (str) -- Name of the layer.
- Returns
The newly created layer.
- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
find_product
(id)¶ Find a product by id.
- Parameters
id (str) -- Product id to find.
- Returns
The product found or
None
if not found.- Return type
- Raises
InvalidIdFormat -- If
id
is not in GUID format.
-
list_products
()¶ List the products of the model.
-
create_product
(name)¶ Create a new product in this model.
- Parameters
name (str) -- Name of the product.
- Returns
The newly created product.
- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
-
property