File3dmObjectTable.FindByLayer Method (Layer)

File3dmObjectTableFindByLayer Method (Layer)

Finds all File3dmObject that are in a given layer.

Namespace:  Rhino.FileIO
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public File3dmObject[] FindByLayer(
	Layer layer
)
Public Function FindByLayer ( 
	layer As Layer
) As File3dmObject()

Parameters

layer
Type: Rhino.DocObjectsLayer
A layer instance.

Return Value

Type: File3dmObject
Array of objects that belong to the specified layer or empty array if no objects could be found.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf layer is null.
Version Information

Rhino for Windows

Supported in: 6.8
See Also