I have spend hours and hours trying to get the center point of a view.
I am trying to place a family at the dead center of a section crop region in 3D. I can find the centroid of the view’s boundingbox but this means the family will be nowhere near the actual section cut, if the view depth is very large.
Can anyone tell me how to find the point in 3D for a section, better yet, any view with a crop region
If you have your view split up to more regions you can use ViewCropRegionShapeManager by using method view.GetCropRegionShapeManager(), then this shape manager has method GetCropShape() which returns list of CurveLoops, from which you can iterate each Crop Region border line. From those you can probably get each corner point (curve.GetEndPoint(0))and calculate middle one with simple sum of each point X / number of points, sum of each point Y / number of points, sum of each point Z / number of points.