This is about Blocks managed with the ELEFRONT plug-in. Perhaps @fraguada have a solution which I failed to find on my own.
Short version: I would like to get rid of the first Block Instance when baking Blocks ( = that is, I want to keep only the Block Definition).
Plug: And for anyone using Grasshopper, the Elefront plug-in is very powerful in enhancing Grasshopper with Block management and User Attributes that can be attached to any object.
- I don’t seem to be able to create a Block Instance directly from the internal GH Geometry without first baking a Block Definition (correct?)
- When I bake a Block Definition, I also get a Block Instance (which I don’t want, because I don’t have a proper name for it, since the instance names are defined later & elsewhere).
- When I later create/bake Block Instances (see picture), I would like to auto-delete the first Block Instance which came when the Block Definition was baked (that unwanted instance from §1 above), not only any previously explicitly baked Block Instances.
If no other solution exists, the above could be handled if enhancing the Bake component as follows:
4.a. The Bake component doesn’t seem to remove named Block Instances as specified in a List of different names (only one name in the List, if feeding a List to the (N / Name) input). Wish: Delete multiple instances with different Object/Instance names as specified in a list.
4.b. Also, if many Block Instances with the same Object/Instance name exist, only one Instance is deleted (if defined in 4.a.). Wish: Delete all instances with any name(s) specified in the N / Name property. That would be gold.
I’m not 100% sure of if the Bake/Delete Name refers to named Instances or to Block Definition names, but if I conflated the two, then it would be a good idea to clarify the difference in the components’ mouse-over hints.
Is there a way to get rid of other (named) instances not covered by the Bake component, other than with a custom coded Script component?
Fig.1. The first line in the panel shows an example of a baked Block Definition, which resulted also in an instance, with the same object/instance name as the Block Definition, the instance which I want to get rid of in addition to any other re-created Block instances :