Grasshopper

algorithmic modeling for Rhino

Can anyone can tell how to change CPlane orientation using VB/C# script? (Not Python)

Views: 873

Replies to This Discussion

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)

Sorry if I resume the discussion, but I hope that things will be simpler after some time.
Do you know how I can draw a sketch on a list of frames?

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2021   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service