Hi,
I am using Rhino 8 + Grasshopper + Rhino.Inside.AutoCAD.
I have an AutoCAD block definition named:
ETICHETTA_DUE_RIGHE
The block contains two AutoCAD attributes:
RIGA_1
RIGA_2
My goal is to place one block reference for each room/space and fill the two attributes with two different text values:
RIGA_1 = room code / label
RIGA_2 = area / perimeter data
Current Grasshopper workflow
I am doing this:
Get AutoCAD Block Table Records
→ AutoCAD Block Table Record
→ filter block by name: ETICHETTA_DUE_RIGHE
→ Create AutoCAD Block Reference
→ Bake to AutoCAD
→ Get By Id
→ AutoCAD Block Reference
→ Block Attributes / Set Block Attributes
Before baking, the created block references show:
AutoCAD BlockReference [Id: No Database Id]
After baking, I can retrieve them with Get By Id, and they are real AutoCAD block references with valid IDs.
The inserted block references are placed at the correct points in AutoCAD, but I only see small insertion points/dots. The attribute texts are not visible / not populated.
Data structure
I have two text lists:
List 1:
D1.S.FF01
D1.S.FF02
D1.S.FF03
D1.S.FF04
List 2:
(P23.164351 A23.4)
(P14.68604 A12.6)
(P18.563222 A17.3)
(P23.290614 A32.5)
I tried to combine them with Entwine, and also tried Flip Matrix, because I am not sure whether Set Block Attributes expects the values as:
{0}
RIGA_1 value for block 0
RIGA_2 value for block 0
{1}
RIGA_1 value for block 1
RIGA_2 value for block 1
or as two separate branches:
{0}
all RIGA_1 values
{1}
all RIGA_2 values
Questions
-
What is the correct workflow to create AutoCAD block references and set their attribute values from Grasshopper?
-
Does
Set Block Attributeswork only after the block references have been baked and have a valid AutoCAD database ID? -
What exact data tree structure should the
Valueinput ofSet Block Attributesreceive when each block has two attributes? -
Why are the inserted blocks visible only as points/dots, without showing the default attribute text?
Screenshot attached.
Thanks.











