Prompts the user to pick, or select, a single object.
Rhino.GetObject ([strMessage [, intType [, blnPreSelect [, blnSelect [, arrObjects ]]]]])
strMessage |
Optional. String. A prompt or message. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
intType |
Optional. Number. The type or types of geometry objects (points, curves, surfaces, meshes, etc.) that can be selected. Object types can be added together to filter several different kinds of geometry.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
blnPreSelect |
Optional. Boolean. Allow for the selection of pre-selected objects. If omitted, pre-selected objects are not accepted (False). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
blnSelect |
Optional. Boolean. Specifies whether or not the picked objects will remain selected when the function ends. If omitted, objects that were pre-picked will remain selected and the objects that were post-picked will not be selected. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
arrObjects |
Optional. Array. An array of strings identifying the objects that are allowed to be selected. |
String |
The identifier of the picked object if successful. |
Null |
If not successful, or on error. |
Dim strObject
strObject = Rhino.GetObject("Pick any object")
If Not IsNull(strObject) Then
Rhino.Print "Object identifier: " & strObject
End If
strObject = Rhino.GetObject("Pick a curve or surface", 4 + 8)
If Not IsNull(strObject) Then
Rhino.Print "Object identifier: " & strObject
End If
strObject = Rhino.GetObject("Select any object", , , True)
If Not IsNull(strObject) Then
Rhino.Print "Object identifier: " & strObject
End If