Grasshopper

algorithmic modeling for Rhino

generating terrain model from Text and 2D-Textposition-Points

Hi everyone,
I'm faced with a problem that seems to occur fairly regularly in my architecture studies.
I am trying to create a 3d terrain model from given points in a dxf-file.
Previously, when files had terrain contour lines , I made a grasshopper-file that divided these, took the division points, and in Rhino, with point set reconstruction tool, made a model via delauney triangulation.
Now, all I have is Rhino Text Objects and their position points in 2D. The Text Objects contain the z-value of the points. Is there a way to get the origin point of the text objects and the value of the text object into grasshopper in some sort of order, so that 3d points can be constructed?
Any suggestions, also as to how I can get the text objects as string into grasshopper, would be appreciated.
Thanks,
See Man

Views: 24073

Replies to This Discussion

Ok, maybe it "works" but then can maybe be give me a hint what is "wrong" that the terrain is not properly modelled in 3d, but stays flat? What could be the reason??

Hello! Does anyone know how to make this work on year 2016. The gh files just give bunch of errors :(

Hi Mae,
Try attaching your .dxf/.dwg/.3dm files which contain the 2d elevation points.

Dear all, 

I would like to thank Vincente for his original script, his updated script with the GUID works perfectly well too. 

Currently I am experiencing a different issue. The dwg which I have from the surveyor contains 6000 spot levels, all indicating the z-positions of the terrain. Unfortunately, these points are not written in a recognisable format, for Vincente's script to work, it requires text in the following format like "245.55", but my text are in the format like "245 55". I have looked up a VB script which allows me to replace all the "space" with "dot", and it can be found at:

https://bytes.com/topic/access/answers/818614-replace-space-charact... 

 Unfortunately I can't get this to work or I can't combine the above script with Vincente's script. I wonder if anyone can help? Many thanks. Please see attached dwg file for the spot levels. 

Best, 

Lucas

  

Attachments:

Hi Lucas,

Check the attached .gh and .3dm files below.
It requires ghpython plugin being installed.

Attachments:

Dear Djordje, 

Your python script works really well, you even remove the "space" behind the each number. Thanks!

Lucas 

thanks alot

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service