How can I extract detailed light source properties?

CollinJoseph0258
Enthusiast
Enthusiast

How can I extract detailed light source properties?

CollinJoseph0258
Enthusiast
Enthusiast

I am using the custom exporter to extract information about lights in Revit projects and write them to an external file. However it seems that key details are missing from the Asset that can be read in the OnLight() function, or they are not clearly defined.

 

Is there a better way to obtain information about lights in a project?

 

Where are the enumerated values that can be read as AssetProperties defined?

The meaning of many of these enumerated values is unclear.

 

Where can I obtain detailed information about the source and distribution shapes?

(e.g. dimensions, orientation, etc)

0 Likes
Reply
388 Views
3 Replies
Replies (3)

RPTHOMAS108
Mentor
Mentor

You can get some aspects you want from the light fixture type parameters perhaps.

 

i.e. filter for type of FamilySymbols of OST_LightingFixtures. That covers these kind of lights below, I don't know if there are other forms of light in addition to these.

 

211013b.PNG

 

211013.PNG

211013a.PNG

CollinJoseph0258
Enthusiast
Enthusiast

Thank you for your suggestion! I am looking into it.

 

Which object are you snooping in your screen shot? Is it the light fixture FamilyInstance?

 

I have tried snooping a simple floor lamp, but I can' find the properties shown in that screenshot.

0 Likes

RPTHOMAS108
Mentor
Mentor

It is a lighting fixture family instance. It will only have those properties if it is of that category. Sometimes you get lighting fixtures nested in other families e.g. your lamp body may be of some other category but has nested lighting fixture.

 

If it is a shared family it can be found on it's own in the project. It would make sense for the family to be shared.