Query block instances to place text and load a picture from folder?

Hi,

I’m trying to build a small Grasshopper workflow in Rhino where I automatically collect lighting objects from my model.

My setup is:

• Lighting fixtures are block instances
• Block names start with a prefix, for example:

el-spot
el-roof
el-wall

Each block instance also has User Text attributes, for example:

ID = spot
TYPE_ID = SPOT_SASSO60

In addition, I have a folder with images of the fixtures, where the image names correspond to the TYPE_ID values.
For example:

SPOT_SASSO60.png
SPOT_SASSO60_TRIMLESS.png

In case you are you using Rhino 8, look at the Grasshopper Rhino components.

1 Like