I’m watching this tutorial for transferring Revit objects into rhino on the “Rhino Inside Revit” website in which they handwave a few items and python definition.
The narrator said the definition is downloadable, but as you can see from this image this page is not yet finished.
If you want to layer geometry by category, following definition might do what you want. Some of the components are from Elefront, so you have to install it first.