Grasshopper

algorithmic modeling for Rhino

hi everyone,

 

who know how to input textes from rhino to grasshopper?

 

I ask this because I am buliding a site with information from cad. I have thousands points of attidute infomation. I input that to rhino and I get "texte" type. With "list" commande, I can see clearly that each texte is associated to a point-based plane and has a texte valeur. I want simply input all txt into grasshopper and give them a height so that I can build the Topo exactely.

thank you.

 

 

Views: 549

Replies to This Discussion

Horster Tools Add-on has a Read Text component?

http://www.grasshopper3d.com/group/horster-tools

Vincent Soler has posted a couple quick scripts that take text input from a rhino doc.  It uses the insertion point of the original text object, and moves the point to the corresponding elevation.

If you paste this code into a new VB object, (math->scripts->VB) it will allow you to reference all the text objects into a GUID param in GH.  Plug that into the x input of the VB component you just created.  NOTE: right click on the X input of the VB component and change the type hint to guid.

Dim objref As New docobjects.ObjRef(x)
Dim txt As TextEntity = objref.TextEntity
a = New point3d(txt.Plane.OriginX, txt.Plane.OriginY, txt.Text)

I forget the exact post, but I think it was something like text to elevation.

http://www.grasshopper3d.com/forum/topics/generating-terrain-model-...

Thank you JOE Alberry and Christ Hanley.

 

I post here also another solution by python which is done by ma friend.

 

 

 

Attachments:

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service