- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
GeometryElement geometry = element.get_Geometry(neOptions());
BoundingBoxXYZ bbWithoutTransform = geometry.GetBoundingBox();
BoundingBoxXYZ bbWithTransform = geometry.GetBoundingBox(transform);
In the code snipped, if the element is just a Family or anything else all good and both bounding boxes are correct.
But when the element is a family that contains sub families, the second bounding box (bbWithTransform) is wrong.
By testing I figured out, that the transformation is only applied to the solids of the geometry (GeometryElement) but not on the GeometryInstance that is also inside the geometry (GeometryElement).
Here is an example.
Both picture show the Boundingboxes of the same Family (Family with SubFamilies) except the second one has differente coordinates in the project.
Note: The Transformation is to the origin. (0,0,0) of the world coordinates.
Is this intended or is this a bug?
Edit: I'm using Revit 2024.2
Solved! Go to Solution.