Outline vs BoundingboxXYZ in Revit API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am wondering what different use cases are for the Outline object vs the BoundingboxXYZ objects. They both seem to have a lot in common. They are both:
- axis aligned bounding boxes
- 3 dimensional
- defined by a Min and Max value
The API also seems to use the term 'outline' and 'boundingbox' interchangeably. For example:
- The BoundingboxIntersectsFilter actually takes in an Outline object instead of a BoundingBoxXYZ
- View.Outline returns a BoundingboxUV instead of an Outline object
So far, I've been using BoundingBoxXYZ for most of my BoundingBox logic. Only recently I discovered that the Outline object has helpful methods like 'Add', 'Contains', 'ContainsOtherOutline', 'Intersects'.
Are there any important distinctions between these two classes? Do they have different use cases? Basically, am I missing something here 🙂 ?
I am thinking of replacing most of my BoundingBoxXYZ methods with Outline objects, and create a conversion method to go from Outline to BoundingBoxXYZ for the cases where you'd still need them (like assigning a section box to a 3d view).