I’m looking for a way to calculate the distance between two faces in a host element.
Explanation:
I use a face-based family to create openings in different elements. When I insert this family in a host I have to set the depth (thickness = épaisseur) manually.
I would like to create a graph that calculates this dimension and set this value in the parameter “épaisseur”.
I have created a graph that takes the thickness of the host element. However, the face-based family is placed vertical and horizontally. Then I must separate different cases.
Conclusion:
I think it would be easier if I got the distance from the host face ( face where the face-based family is inserted) to the opposite face.
Question:
How can I get the face where the face-based family is hosted from the host element?
How can I calculate the distance between the opposite fade to get the thickness of the element?
Fastest way is likely to just get the thickness from the floors/walls, and get all the beam dimensions from the beams before filtering for the longest one, and use that to set the depth. This will make the void larger than it needs to be for some of the beam families, but it shouldn’t cut more than the beam so likely that’s ok.
Geometry efforts might be possible but will be very slow.
Yes. The problem is my family has a nested symbol that represents the opening depth when I create a section. If my opening is deeper than the beam we see it in the sections and elevations.
Yes. The problem is my family has a nested symbol that represents the opening depth when I create a section. If my opening is deeper than the beam we see it in the sections and elevations.
Try intersecting a line then, and getting the distance from the start point to all generated points, pulling the greatest such one. I would only test this on beams though and only if you really must - it will be slower. Using the beams thickness (assuming your families have such a parameter) is likely better.
Yes. I was thinking in getting the orientation of the hosted family. Secondly, I’d take the faces of the host with the same orientation. Finally, I would calculate the distance between those face.
However, I have no idea how to do it.
I have to do some tests.