Bug: GH not reading attribute values of blocks defined in CAD

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.

The blocks as defined in CAD. These are dummy value for now.

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

test.dwg (44.8 KB)

block_usertext_bug.gh (23.0 KB)

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.

block_usertext_bake.gh (23.3 KB)

How did you bake?

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!

block_usertext_bug_a.gh (23.6 KB)

claude help me out to fix the issue

Hi thanks for the attempt! I fixed it myself using native tools only! I just needed to understand how to restore the data!