Detect Cut between two elements
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm struggling to detect cut between two FamilyInstance elements.
The situation is the following we have a discomposed wall made of plates and studs. I want to check if all the studs are creating a nutch inside the plates. The nutch is created with the "Cut" function. There is a void at each ends of studs.
So far I've tried 3 methods :
BooleanOperationsUtils.ExecuteBooleanOperation(studSolid, plateSolid, BooleanOperationsType.Intersect);
Which is giving me a Solid with a volume even if there is visualy no intersection.
InstanceVoidCutUtils.InstanceVoidCutExists(topPlate, verticalStud);
Which is always return true in my case. Even if I move the stud far from the plate.
SolidSolidCutUtils.CutExistsBetweenElements(verticalStud, topPlate, out bool firstCutsSecond);Which seems to work randomly. It may return false on specific pair (always the same) but return true on other.
Please check the .rvt sample below (view : {3D}) it contains a plate and two vertical studs. The lefts stud gives me true in the solidsolidcututils method and the right one gives me false.
Thanks !
Developer Advocacy and Support +