Hi there,
I have an idea, and I´d like to know, if it´s worth the time and effort, and how to get there.
Objects can have user attributes with reference to their actual geometry data depending on their nature (curve length, volume, area, point coordinates).
I´d like to have a block definition with the ability to grab these data from individual objects inside the block, i.e. reporting geometry data outside.
Example - block definition of column. Block consists of line describing length, cylinder describing volume and some surface wrapped around as a paint layer let´s say. I want the column block to report geometry data from each of its sub-objects so I can count how many paint is needed for 48 Pcs. of such columns.
I´ve tested this:
- save document user text as reference to curve length once inside block definition … for example %<CurveLength(“8b0d7124-52cf-41b9-ad80-11377d45a565”,“Meters”)>%
- Ctrl+C → Ctrl+V this expression to block user defined attributes - shows correct length
- modify curve inside the block … the reported length = 0.000
The problem is that each time I enter the block definition, the curve inside gets new Guid. Inside the block definition the curve report correct length, but with new Guid, external link is broken.
I´ve tried to search similar topics, but couldn´t find any. Is there any smart solution (or vision for such solution) without Grasshopper, Rhinocommon or manual update?
Thank you very much,
Pavel