Get subcategories of a family or select families by subcategories

Hello community,

I was reading this post
https://forum.dynamobim.com/t/selecting-elements-by-subcategory-in-family-document-element-bycategory/16999/16

But I still dont understand how I can get the subcategory/subcategories of a family typ or instance or select families by subcategories. I was trying out here but something doesnt work out.


Categories und Subcategorien_03.dyn (10.6 KB)
image
The family_Elem_Subcategory is a builtIn Parameter, so it should be possible

thanks in advance.

Are you in the family environment or the project environment?

Note there is an API method for the project environment shown here:

1 Like