I have a CAD file where I have some predefined blocks with some attribute values predefined. I have a cluster component for GH where it reads my CAD file and outputs the geometries or blocks by layer using native grasshopper components. The issue is reading CAD files like this seems to erase the attribute values of the block.
Gh preview does not shows the value and on baking them it completely behaves weirdly. I am attaching the GH script as well as the CAD file for reference. However, if I import the CAD file in Rhino, the attributes are intact and show up as editable usertext. Any help is appreciated! @kike@scottd
I have not studied your cluster but if you skip it and just import the *.dwg as model block definition and bake as model objects, the user text appears to be correct.
I baked it by just importing it Rhino once. And one was using content cache. All of my workflow is a between CAD and GH as of now. I dont want to bake my blocks and read them again. This script will be converted to a hops component so I dont want the overhead for baking the geometries or blocks in Rhino.
Oh shoot somehow this gives me the values! But I really wanna know what is the difference between the two methods. This will prompt me to update my CAD reader cluster.
I found that exploding my cluster and passing the model object instead of geometry allows me to read the values. BUT, if it is read after receiving as an output from a cluster it loses the user text values. Strange!