Returns the identifiers of objects based on the objects' geometry type.
Rhino.ObjectsByRegion (arrPoints, intMode, intType, strView, blnSelect)
arrPoints |
Required. Array. An array of 3-D points that define the selection region. The array must contain at least three 3-D points. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
intMode |
Required. Number. The selection mode, where:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
strView |
Optional. String. The title or identifier of the view. If omitted, the current active view is used. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
blnSelect |
Optional. Boolean. Select the objects. If omitted, the objects are not selected (False). |
Array |
An array of strings identifying the objects if successful. |
Null |
If not successful, or on error. |
Dim arrPoints, arrObjects, i
arrPoints = Rhino.GetPolyline
If IsArray(arrPoints) Then
arrObjects = Rhino.ObjectsByRegion(arrPoints, 0)
If IsArray(arrObjects) Then
For i = 0 to UBound(arrObjects)
Rhino.Print arrObjects(i)
Next
End If
End If