Light Fixture Type

Light Fixture Type

CollinJoseph0258
Enthusiast Enthusiast
369 Views
2 Replies
Message 1 of 3

Light Fixture Type

CollinJoseph0258
Enthusiast
Enthusiast

I am trying to determine what kind of light fixture I am exporting when I export the fixture using the CustomExporter. Specifically, what kind of surface it is attached to (e.g. ceiling, wall, floor).

What is the best way to determine this?

0 Likes
Accepted solutions (1)
370 Views
2 Replies
Replies (2)
Message 2 of 3

mhannonQ65N2
Collaborator
Collaborator
Accepted solution

If it's a hosted family you could test its Host property (this will throw an exception if it isn't hosted). Or maybe you could check its FacingOrientation (though this depends on how the family is made): a vector like (0,0,1) indicates it's facing up, a vector like (0,0,-1) means it's facing down, and a vector in the xy plane means it's facing horizontally.

Though it's possible to create a non hosted family for a light fixture and when you place it on a work plane to represent it hanging from/on the ceiling, its FacingOrientation is actually horizontal because it was created already facing down.

Message 3 of 3

CollinJoseph0258
Enthusiast
Enthusiast

This is what I was looking for! Thank you!

0 Likes