Grasshopper

algorithmic modeling for Rhino

 

Hi,

ok bear with me this will probably be at little league question, but ive been using grasshopper for about 2 months now and VB.net for about two weeks. so here we go.

im trying to write a custom component in GH for a project im working on. as part of that component I want to dynamic show text the rhino viewport but I don't want to have to return a value that I then plug into the "text tag 3d" component. I want to build a similar method into my custom component.

therein lies my problem. I haven't yet figured out how to get my vb code to produce text.

my latest attempt looks a little something like this.

    Dim TestPoint3D As New rhino.Geometry.Point3d(0, 0, 0)
    Dim TestVect As New rhino.Geometry.Vector3d(0, 0, 1)

    Dim TestPlane As New plane(TestPoint3D, TestVect)

    Dim TestText As New display.text3d("bob", TestPlane, 10)

    ListItem = TestPlane
    TextItem = TestText

but I get nothing out of it.

latest theory is to try using "Draw3dText Method (Text3d, Color)" but this is where ive hit a wall

if I understand how this works than I would think I would code this

   Dim TestText As New Rhino.Display.DisplayPipline.Draw3dText( text here, and color here)

 

but the hint that im getting after "DisplayPipline" doesnt show a "Draw3dText" method?

so im confused?

 

again my overall goal is to get text to display in the viewport directly through my component

 

any thoughts or ideas, or if im even in the ballpark on this one would be helpful.

 

thanks!

Views: 992

Attachments:

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service