Get Mapping Information From Object
Windows only
Demonstrates how to get Flamingo nXt mapping information from an object using RhinoScript.
Option Explicit
Call Main()
Sub Main()
Dim objPlugIn, strObject, origin
On Error Resume Next
Set objPlugIn = Rhino.GetPluginObject("8008880f-8d13-4b2d-92b0-727e12878a4c")
If Err Then
MsgBox Err.Description
Exit Sub
End If
strObject = Rhino.GetObject("Select object")
If Not IsNull(strObject) And Not strObject = "" Then
origin = objPlugIn.GetMappingOrigin(strObject)
If IsNull(origin) Then
Rhino.Print("Object has no mapping data")
Else
Rhino.Print("Object mapping origin: " & Rhino.Pt2Str(origin))
End If
End If
Set objPlugIn = Nothing
End Sub