List models

async AsyncCogniteClient.three_d.models.list(
published: bool | None = None,
limit: int | None = 25,
) ThreeDModelList

List 3d models.

Parameters:
  • published (bool | None) – Filter based on whether or not the model has published revisions.

  • limit (int | None) – Maximum number of models to retrieve. Defaults to 25. Set to -1, float(“inf”) or None to return all items.

Returns:

The list of 3d models.

Return type:

ThreeDModelList

Examples

List 3d models:

>>> from cognite.client import CogniteClient, AsyncCogniteClient
>>> client = CogniteClient()
>>> # async_client = AsyncCogniteClient()  # another option
>>> model_list = client.three_d.models.list()

Iterate over 3d models, one-by-one:

>>> for model in client.three_d.models():
...     model  # do something with the 3d model

Iterate over chunks of 3d models to reduce memory load:

>>> for model in client.three_d.models(chunk_size=50):
...     model  # do something with the 3d model