Returns the active working space of an object.
Rhino.ObjectSpace(strObject)
strObject |
Required. String. The identifier of an object. |
Number |
The active space of the object if successful. The valid active space types are as follows:
|
||||||||||||
Null |
On error. |
Dim strObject, intSpace
strObject = Rhino.GetObject("Select object to scale")
If Not IsNull(strObject) Then
intSpace = Rhino.ObjectSpace(strObject)
If intSpace = 1 Then
Rhino.Print "Object is in model space."
Else
Rhino.Print "Object is in layout space."
End If
End If