I want viewport.GetBoxOutline to fit with all included elements as you can see in the photos.
viewport.GetBoxOutline is not the same as CropBox, AnnotationCrop or Crop Region Visible.
When I do manually in revit viewPort.GetBoxOutline autofits properly even if I move the tag inside of annotationCrop.
However doing via api it does not work.