You could align the projected views taking into account the position of the original parent view. Here is an example of how I could achieve it. The same results are achieved as performing the work manually.
Dim doc As DrawingDocument = ThisDoc.Document
Dim oSheet As Sheet = doc.ActiveSheet
Dim oSep As Double = 2
Dim oParentView As DrawingView = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kDrawingViewFilter, "Select View")
If oParentView Is Nothing Then Exit Sub
Dim V1Point2D As Point2d = ThisApplication.TransientGeometry.CreatePoint2d(oParentView.Center.X + 10, oParentView.Center.Y)
Dim V2Point2D As Point2d = ThisApplication.TransientGeometry.CreatePoint2d(oParentView.Center.X, oParentView.Center.Y - 10)
Dim V3Point2D As Point2d = ThisApplication.TransientGeometry.CreatePoint2d(oParentView.Center.X + 10, oParentView.Center.Y - 10)
Dim oView1 As DrawingView = oSheet.DrawingViews.AddProjectedView(oParentView, V1Point2D, DrawingViewStyleEnum.kFromBaseDrawingViewStyle)
Dim oView2 As DrawingView = oSheet.DrawingViews.AddProjectedView(oParentView, V2Point2D, DrawingViewStyleEnum.kFromBaseDrawingViewStyle)
Dim oView3 As DrawingView = oSheet.DrawingViews.AddProjectedView(oParentView, V3Point2D, DrawingViewStyleEnum.kFromBaseDrawingViewStyle)
oView1.Position= ThisApplication.TransientGeometry.CreatePoint2d(oParentView.Center.X + oParentView.Width / 2 + oSep + oView1.Width / 2, oView1.Center.Y)
oView2.Position = ThisApplication.TransientGeometry.CreatePoint2d(oParentView.Center.X, oParentView.Center.Y - oParentView.Height / 2 - oSep - oView2.Height / 2)
oView3.Position = ThisApplication.TransientGeometry.CreatePoint2d(oParentView.Center.X + oParentView.Width / 2 + oSep + oView3.Width / 2, _
oParentView.Center.Y - oParentView.Height / 2 - oSep - oView3.Height / 2)
oView3.ViewStyle = oParentView.ViewStyle
I hope this can be useful. Cheers!
Please accept as solution and give likes if applicable.
I am attaching my Upwork profile for specific queries.
Sergio Daniel Suarez
Mechanical Designer
| Upwork Profile | LinkedIn