Application of angled void-extrusion/cut not possible
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have a problem understanding the behaviour of Revit in a certain situation.
When I create a rectangular shaped solid and I want to cut it with a rectangular shaped void extrusion which is angled.
I face the same problem as described here: https://forums.autodesk.com/t5/revit-api-forum/application-of-void-extrusion-cut-not-possible-for-pr...
The created profile has a perfect aligned cut but to prevent problems (as in the link) when applying the cut the length of the profile is increased. Which leads to the new problem that depending on the angle in which the void extrusion is rotated, the length in which the profile should be increased needs to be bigger/smaller.
In the linked file (CutTestFamily.rfa) I created a test scenario and basically looked up values which I need.
Angle (degrees) of Void Extrusion | Length of Increasement |
1 | 9.17mm |
2 | 4.521mm |
3 | 3.037mm |
4 | 2.275mm |
5 | 1.826mm |
10 | 0.909mm |
20 | 0.448mm |
89 | 0.155mm |
This leads to the formula 10/angle (10 to be a little bit bigger). To avoid being below the 1/32inch “Minimal Line Length” I implemented the following function.
private double GetProfileDistanceByAngleInMillimeters(double angleInDegree)
{
const double maxLength = 10.0d; //mm estimated through testing
var minAllowedLength = ConstructionConstraints.ProfileIncreasementLengthMillimeters; // 1/32 Inch in Millimeters
return Math.Max(maxLength / angleInDegree, minAllowedLength);
}
I do not understand how Revit is handling the calculation of the length. I really want to know the real Threshold that Revit is working with so I can have a solution that is always working, since this 10mm is just an estimated value here.
Best regards,
Tim B.