Message 1 of 1
Getting the Bounding Box of an Assembly

Not applicable
04-17-2012
08:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I've been trying to write some code that involves getting the center point of an assembly (in Revit, similar to a group), and I'm trying to do that by averaging the max and min of the assembly's bounding box. I'm using the sintax to find an element's bounding box which has worked when I tried it on other element types (such as groups) but AssemblyInstance.get_BoundingBox(null) isn't returning anything for me. Has anybody else experienced this or knows why this might happen?