algorithmic modeling for Rhino
Sorry I'm not good at scripting. I tried this:
Private Sub RunScript(ByVal P As Plane, ByRef A As Object)
Rhino.Display.RhinoViewport.SetConstructionPlane(P)
End Sub
And this came out: BC30469: Reference to a non-shared member requires an object reference
Oh, i got it!
doc.Views.ActiveView.ActiveViewport.SetConstructionPlane(P)
Thanks!
This is amazing.... So in love with rhino / grasshopper
I'm using the code above to orient and move a referenced 3dm file containing a so called "volume" on a climbing wall.
With the CPlane on a panel of the wall, I can bake the volume and then rotate and move with the gumball or rhino commands. Very very handy
I used this to set cplane as default:
Dim pln As New plane(plane.WorldXY())
doc.Views.ActiveView.ActiveViewport.SetConstructionPlane(pln)
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by