ADVENTURES IN BOUNDING BOXES

The Revit API includes Methods to retrieve Bounding Boxes of Model Elements. There is a catch however… The Bounding Boxes returned are always aligned to the default axes of the model coordinate system.

This is “close enough” if the software you are engineering only needs to get within the ballpark. An “Auto Connect” software tool for example can use the BoundingBoxContainsPointFilter Class to determine whether or not it should check relevant Connectors for missing connections.

For Automation, Spooling, Tagging, and Coordination tools however, this simply will not suffice. It’s up to us to “roll our own” implementation of the Bounding Box. We must always determine the “tightest” Bounding Box possible!

The implementation isn’t trivial (unless you happen to be a mathematician), but the implications are immense!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s