File3dmLayerTable

class rhino3dm.File3dmLayerTable
__len__()

[todo] add documentation

__getitem__()

[todo] add documentation

__iter__()

[todo] add documentation

Add(layer)

[todo] add documentation

AddLayer(name, color)

Easy way to add a new layer to the model.

Parameters:
  • name (str) – Layer name.

  • color (System.Drawing.Color) – Layer color.

Returns:

The layer’s index (>=0) is returned. Otherwise, RhinoMath.UnsetIntIndex is returned.

Return type:

int

FindName(name, parentId)

Finds a Layer given its name.

Parameters:
  • name (str) – The name of the Layer to be searched.

  • parentId (Guid) – The id of the parent Layer to be searched.

Returns:

A Layer, or None on error.

Return type:

Layer

FindIndex(index)

Retrieves a Layer object based on Index. This search type of search is discouraged. We are moving towards using only IDs for all tables.

Parameters:

index (int) – The index to search for.

Returns:

A Layer object, or None if none was found.

Return type:

Layer

FindId(id)

[todo] add documentation