Hello
I use an Elefront plugin to work with blocks.
And I would like to save the BlockObject inside the .gh file.
I can’t figure out how to do it.
Parameter “extend geometry” in Elefront does not have “internalise data”
an Instance Definition is the cookie cutter i.e. a “template”. When a Trans (+ insertion pt) is used then …
… an Instance Reference is placed in the active doc: i.e. a cookie. This carries always the Trans info (see line 105 below).
The following demo code samples (in a DataTree of GeometryBase Type) geometry of any Instance Reference found in a given doc (OK that is not a rational thing to do … but it’s just a demo) :
So in real-life you’ll need an identification (via highlight?) of the Reference to work with (i.e to get the Geometry). Plus (case Nested stuff - that’s the norm in real-life) you’ll need some other things as well. Plus you’ll need a work mode: Definition or Reference?
You can also sample the Geometry of the cookie cutter (the Definition). Have in mind that any Reference (child) is due to a Definition (parent) … meaning that the cookie cutter related Methods are always at your disposal.
Notify if you need an entry level C# on that matter.
Thanks for the idea and details.
But I think this will complicate my task.
I learned to add a block to the definition, looks like it works.
The only thing I feel difficult — I can’t put the block and the curve at the same time within the definition, without the use objects inside Rhino scene (3dm file).
It works if bake and assign it to ExtGeo (set multiple extend geometries)
I have no idea what this thing does … but appears to me that you should contact the person who did it.
BTW: you still talk about a “block”. What this means? The Definition (stored in a Table and not visible in views) or References of that? (visible in views).