Hi everyone,
I created Grasshopper/ShapeDiver definition that enables export dwg and I wanted to export data to 2 separate AutoCad layers with 2 different colors. I used export attriubes component as it is shown on image and email export works good locally. Exported drawing has 2 separate layers with name given via Export attributes component. However, when upload grasshopper definition ( from rhino 6 version) to Designer account and download dwg via email, dwg file has always 2 layers (layer “0” and layer “default” ) with same color (black), different from defined attributes.
How to export properly dwg drawing with two layers with 2 different colors?
The method you are using should work as expected. Please share the definition causing issues for further testing.
I am sending you definiton as well as link to check how it works on my account. ShapeDiver
test.gh (19.0 KB)
Thank you for the report, I could reproduce the issue and we will fix it in the next few days.
In the meanwhile, you can solve the issue by avoiding using the “Export Attributes” component, and instead build your attributes using the “Construct Attributes” component, like this:
I will let you know when the issue with the “Export Attributes” component is fixed.
The problem is now fixed. However, you will have to re-upload your model or empty all the cached outputs and exports of the current one to see the change.
It works, thanks!
I am writting regarding the same problem. It works only for export to dwg. But not works for export to Rhino 6 for example. Also, it doesn’t work with “construct attributes” component, but only with “Export Attributes” component…
Can you please include a Grasshopper definition that can be used to reproduce the issue?
Hi,
Strange, but today I reupload again and export to Rhino works. However, issue with “construct attributes” component still exist. I am sending small example grasshopper definition, or you can try here: ShapeDiver
problem.gh (16.5 KB)
When you use the “Construct Attributes” component, please make sure to respect the exact names of reserved attributes. In your case, the issue happens because you are using uppercase letters. If you write layer
and color
, it should work as expected.
Additionally, if you are experiencing export errors, it might be because the file name is not valid (you should remove the comma).
It works now, thanks.