diff --git a/src/IPA.Bcfier.Revit/Services/RevitViewpointCreationService.cs b/src/IPA.Bcfier.Revit/Services/RevitViewpointCreationService.cs index 9c01974..d9a84c1 100644 --- a/src/IPA.Bcfier.Revit/Services/RevitViewpointCreationService.cs +++ b/src/IPA.Bcfier.Revit/Services/RevitViewpointCreationService.cs @@ -214,6 +214,10 @@ private static List GetBcfClippingPlanes(UIDocument u } BoundingBoxXYZ sectionBox = view3D.GetSectionBox(); + + var transform = uiDocument.Document.ActiveProjectLocation.GetTransform().Inverse; + sectionBox.Transform = transform; + XYZ transformedMin = sectionBox.Transform.OfPoint(sectionBox.Min); XYZ transformedMax = sectionBox.Transform.OfPoint(sectionBox.Max); Vector3 minCorner = transformedMin.ToVector3().ToMeters();