objects_by_layer#

Modeler3DLayout.objects_by_layer(layer, object_filter=None, include_voids=False)#

Retrieve the list of objects that belongs to a specific layer.

Parameters:
layerstr

Name of the layer to filter.

object_filterstr, list, optional

Name of the category to include in search. Options are “poly”, “circle”, “rect”,`”line”,”arc”, `”via”,`”pin”` and “component”.

include_voidsbool, optional

Either if include or not the voids in search.

Returns:
list

Objects found.