Hello everybody,
Please find atached a definition and corresponding rhino file in which I have one block, in which are nested 2 instances of another block (the block defintion name contains the characters “TGA”)
I was hoping i could cull my list of objects coming from the block to only have a list with my 2 nested block and process them further.
But frankly I cannot wrap my head around how to do it. even when selecting object type/nam or block instance/definition in the texxt filter component - i cannot get a lsit with just my 2 nested blocks.
There must be something I am doing wrong but I do not understand what - Would someonebe kind enough to show me the way ?
Adress block TGA.gh (9.4 KB)
nested block filter from name.3dm (471.2 KB)
Your definition gets the block definitions. I think you should filter the instances.
I’d do it like this:
Adress block TGA mrtn.gh (12.4 KB)
Thank your for your help !
Let me check with you if i understqnd correctly :
1 we querry all the objects in the model
2 we filter those who are a block instance, so we get the mother block
3 you explode the mother block
2 we filter again to get those who are nested.
Works like a charm !
But what if I have 2 types of nested block (lets call them “nested A", and “nested B”, would not the name be a usefull way to dispatch them accordingly ?) That is what I anticipated by using the text filter component.
Filter by instance definition name like this:
Adress block TGA mrtn_02.gh (13.5 KB)
Thank you so much Martin,
This is not the first time you support my work, so a big thanks !