Filter out Lighting Fixture subcategory

I am stuck in getting a lighting fixture family to not bring in it’s light source sub category into rhino. Is there a way in which this subcategory can be filtered out? Thanks in advance for any tips on getting me into the right direction.

Unfortunately the good geometry is in that category as well. The best results are baking straight to block from a graphical element.

Hi @Japhy,

I’m just coming across this 4 years later and shocked that there doesn’t seem to be a differentiation between the light source and the geometry of the family/fixture itself.

What’s puzzling to me is that I do see a append distinction as “|Light Source” within the Element Category list itself but this seems to be completely disconnected from the reality of what is a light source and what is not…

Strangely, in further explorations, when I explode the Revit Component and peak the Model Object Layer names I actually DO get the proper light source isolated and am able to cull the data/geometry using this approach… However, exploding hundreds or thousands of light fixture families in a typical commercial project this would be a long computation just to peak some metadata.

Is this a bug that the Model Object Layer data is correct but that the Revit category is incorrect or one of those weird Revit API/limitation things?

My example/workaround:

EDIT:

Interestingly, the Layer names are correct AND there is even a Hidden property that can be used to cull the light source itself…

If i understand correctly what you are sorting are sub-objects of the Revit Family itself.

That is correct yes, I am interested in retaining the Family Geometry but culling and/or replacing the “light source” with a Rhino light source, Enscape, D5, etc.

Assuming that you are in a large project there could be a variety of conditions due to various Revit Family builders that people downloaded into their revit project.

Yes, this single “view” I’m working with has 400+ light fixtures in it. Some recessed downlights, some surface mounted downlights, pendants, etc.

What I am doing as an optimization to handle it is I create a set of the unique components:

This allows me to modify only 25 unique light fixtures here and then I can propagate any changes back to the full 400+ instances throughout.

could be a variety of conditions

Yes, I do expect there to be but I think a Revit “light source” is a consistent Revit Object regardless of how it was created and if I recall correctly a lighting family in Revit always has a light source, you actually can’t remove it, you can only make a Generic family or other family that doesn’t come with a lightsource.

This is all I see in the Revit API:

One thing help is to go into the Revit View and enable the visibility of the Light Source object category.

1 Like

Thanks for that suggestion!

I do have that off already:

But the geometry of the Light Source comes through regardless.