Querying Elements by Subcategory in Rhino.Inside.Revit Grasshopper

In Rhino.Inside.Revit Grashopper, is there a way to choose Elements by Subcategory?
For Example, I have bunch of Model Lines I’ve sorted by Line Style.

Is there a way to select or identify only the Lines with that specific subcategory (Line Style) once I bring them in?

Hi,

There is no dedicated component for this, but you can build your own using a cluster like this one.

RiR-QueryModelLines.gh (13.6 KB)

1 Like

Amazing! Thank you much @kike!

Hi Kike, is there a way to get access to the Subcategories in Detail Item from a project file? For instance, get which family types are using one selected Detail Item Subcategories. I tried connect the “Element Subcategory” with an detail item instance, it returns “null”.


Hi Hali,

Detail items are View dependent, try something like this…

1 Like

Hi @Japhy,

I have also same question.
What “Element Subcategory” component uses for?
I see we can use Element Geometry component to get the geometries of subcategory…

I am just trying to find out the usecases using “Element Subcategory” component. Cannot come up with the ideas as the output of Subcategory is Null…

If you can get/set the subcategory if available.

1 Like

Hi @Japhy,

aha… it works in Family Editor…

Thanks for the help!!