Is there a way to manage DWG-file geometry through layers in real time?

I’m trying to figure out are you able to get geometry and their layers from DWG-file to grasshopper, for example:

I have 2 polylines in 2 different layers in autocad file, I want to separate them by their layers in grasshopper. Am I able to do it so, that I can update the dwg-file and it updates in real time in grasshopper? I tried this through TTToolbox, and I could not get any attributes from it, only geometry.

DWG_tekla.gh (4.7 KB)

used the other TTToolBox components to construct and bake to rhino in layers

1 Like

Thank you for your answer! Do you know why does it give me error:

  1. Solution exception:Object reference not set to an instance of an object.

You can use native Grasshopper Rhino components to bake geometry into layers.

Rhino - Objektattribute in Grasshopper

post your file cad dwg file and gh

just drag and drop your file it will import with all layers and names perfectly

like the below screen shot u can import a particular layer from the autocad

1 Like

Here is dwg-file i try to use.

polylines.dwg (35.0 KB)

DWG_tekla_mrtn.gh (13.6 KB)

2 Likes

This worked very well Martin! Amazing, thank you very much!!!:slightly_smiling_face:

1 Like

Hello When i click button “import” rhino crush, may be you can help me, what I shpuld start to solve this issue

Crash?

yes crash))

What are you trying to import?

Sharing your files might help…

It is crush with simple file, I found this post? I have same isuue Rhino crash while using import 3DM in grasshopper

But thereis no solution))

Is your Rhino installation up to date?

Importing a *.dwg as a content and block definition both works here in Rhino 9 Grasshopper.