I have declared 2 objects globaly in my module.
Global RhinoScript As Object
Global Rhino As Object
Sub Main()
Set RhinoScript = CreateObject("Rhino3.Application"
If RhinoScript.Visible = False Then
MsgBox "Rhino must be running to run this plug-in", vbCritical, "Plugin Error"
End
End If
Set Rhino = RhinoScript.GetScriptObject()
VolumeBox.Show
End Sub
When I run a comaand (Rhino.command) I get a runtime error (Error: 1234 Cancel)
What am I doing wrong?
Any help is appreciated.
Global RhinoScript As Object
Global Rhino As Object
Sub Main()
Set RhinoScript = CreateObject("Rhino3.Application"
If RhinoScript.Visible = False Then
MsgBox "Rhino must be running to run this plug-in", vbCritical, "Plugin Error"
End
End If
Set Rhino = RhinoScript.GetScriptObject()
VolumeBox.Show
End Sub
When I run a comaand (Rhino.command) I get a runtime error (Error: 1234 Cancel)
What am I doing wrong?
Any help is appreciated.