Hi,
Is it possible to only get the distance from the opening edge to wall edge and opening edge to opening edge?
Opening Edge to Wall Edge distance .dyn (28.9 KB)
Hi,
Is it possible to only get the distance from the opening edge to wall edge and opening edge to opening edge?
Yes - if you want to get the layout as you have illustrated then look into the dimensioning workflows.
If you just want to do a geometric analysis then Instead of using element.children and bounding boxes I recommend you use the geometry of the wall.
Note that you might want to group stuff by inclusion in a common vertical range between step 3 and 4. I won’t go into the logic for that as those steps won’t help if you don’t manage the base steps first.
Give it a shot and see where you get.
Hi @jacob.small, the distance is resulting 0. I’m not sure what I’m doing wrong.
Look at how many items you have at each step. For a basic wall there are at least four surfaces which have a normal with a z component of 0 - the front face, the back face, the left side, and the right side.
You need to get either the front or back face.
As a side note, you appear to be using an antique for all of this work. Revit 2022 isn’t supported, and you’re going to be spending a LOT of time maintaining the antique and the supported builds. Time to update.