Get Bottom Face of Door

Get Bottom Face of Door

Anonymous
Not applicable
1,038 Views
3 Replies
Message 1 of 4

Get Bottom Face of Door

Anonymous
Not applicable

Hi,

I need to get the bottom face of a door (highlighted in the image below)

 

door_bottom_face.PNG

 

 

 

 

 

 

 

 

 

 

 

However, I have no idea of how one could do this. I have some experience of getting different faces on Walls, but I cannot translate it to Doors/Family Instances. 

 

Thanks in advance! 

0 Likes
Accepted solutions (1)
1,039 Views
3 Replies
Replies (3)
Message 2 of 4

RPTHOMAS108
Mentor
Mentor

likely bottom face with have the smallest Z value for face origin and have a normal similar to 0,0,-1.

 

Have a look in RevitLookup, there could be many bottom faces in family instances, so no standard way. Doors should be easy though because they are always vertical.

0 Likes
Message 3 of 4

Anonymous
Not applicable

Choosing which face is the easy part, but how do I get all of the faces in the first place?

0 Likes
Message 4 of 4

RPTHOMAS108
Mentor
Mentor
Accepted solution

It is similar to extracting geometry from Walls only real difference is that unmodified FamilyInstances have a top level GeometryInstance that contains the geometry primitives. The process for modified (cut/joined) FamilyInstances is the same as system families such as walls.

 

There is a good example under Element.Geometry in RevitAPI.chm. This example extracts both Solids and Curves but you can take out the curves part.

 

For each solid you can then use Solid.Faces collection.

0 Likes