Extracting the text from a dxf file into grasshopper

Hey everyone, i have imported a dxf file into grasshopper (1st photo). All of the lines from the drawing(buildings, forces) all appeared(2nd photo). The problem is all the texts such as the value of the loads and title of the project all does not appear. Any ideas anyone?

I dont want to import directly to Rhino. I want to do it through grasshopper.


Standard grasshopper (for Rhino 7) doesn’t have annotation and texts data type.
You can generate texts and annotations but only as a bake operation, so not importing them from rhino document or another file.

You should import your .dxf file first, and then try your luck with some plugin like elefront to get more data/geometry types in grasshopper.

Thanks for answering, I tried following a script i got from

and it works as he said. But I guess the text that I was looking for is in something called Rhino.Geometry.TextEntity(photo below)
4

Any idea how to extract it?

PlainText property?

https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.textentity

Use Ghpython or c# to read the TextEntity

2 Likes

Hello,

do you have any idea of how to do the the opposite? like export a text into a DXF file?

in my case i’m generating a text with visualARQ (because I couldn’t find another way to export text without baking) and i’m trying to export it to DXF using TT Toolbox but it doesn’t work because it doesn’t reconize text, only geometries, the problem is that i can’t not export a text as a group of curves because the CNC software i’m using doesn’t recognizes those curves as text