I have a couple of plates & beams that I want to make them into block individually, but then also grouping them altogether into one big block so that they can be scaled together in AutoCAD.
I could not figure out a way to do this, could somebody please help? Attached is the Grasshopper script that I used.
p/s: if possible, could you please show me how to colour each line differently as well? Currently it comes into AutoCAD as all black no matter how I try. Cheers!
SPECKLE.gh (16.2 KB)
Hi @Hung , two points:
-
in your current script, try creating an
Instance
from your first (nested) definition, and passing that instance into thegeometry
: https://latest.speckle.systems/projects/3f895e614f/models/647254f4e4@e5f1e77098
-
Coloring right now (afaik) is not supported in our legacy grasshopper connector out of the box: you can use a c# component to create a
displayStyle
object that contains the color and attach it to your definition geometry instead.
On this note, the Next-Gen Grasshopper connector (alpha) lets you assign colors easily, but currently does not have block support
We’ll be adding block support soon in our Beta release, I’ll let you know when that is ready!