Returns the identifiers of objects based on the objects' layer.
Rhino.ObjectsByLayer (strLayer [, blnSelect [, intType]])
strLayer |
Required. String. The name or identifier of a layer. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
blnSelect |
Optional. Boolean. Select the objects. If omitted, the objects are not selected (False). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
intType |
Optional. Number. The type(s) of geometry objects (points, curves, surfaces, meshes, etc.) that can be returned. Object types can be added together to filter several different kinds of geometry.
|
Array |
An array of strings identifying the objects if successful. |
Null |
If not successful, or on error. |
Dim arrObjects, strObject, strLayer
strObject = Rhino.GetObject("Pick any object")
If Not IsNull(strObject) Then
strLayer = Rhino.ObjectLayer(strObject)
arrObjects = Rhino.ObjectsByLayer(strLayer, True)
End If