evo.objects.typed.attributes.BlockModelAttributes
A collection of attributes on a block model with pretty-printing support.
exists
exists: bool
Whether this attribute exists on the block model.
Returns:
| Type | Description |
|---|---|
bool
|
True for existing attributes. |
from_schema
from_schema(attributes_list: list[dict], block_model: BlockModel | None = None) -> BlockModelAttributes
Parse block model attributes from the schema format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
attributes_list
|
list[dict]
|
List of attribute dictionaries from the schema. |
required |
block_model
|
BlockModel | None
|
Optional parent BlockModel for back-references. |
None
|
Returns:
| Type | Description |
|---|---|
BlockModelAttributes
|
A BlockModelAttributes collection. |