help on Overlaying two views

help on Overlaying two views

Anonymous
Not applicable
286 Views
1 Reply
Message 1 of 2

help on Overlaying two views

Anonymous
Not applicable

hi,

               

oBaseView = osheet.DrawingViews.AddBaseView(otargetDoc, oPoint1, DrawingViewScale, kFrontViewOrientation, kHiddenLineDrawingViewStyle, "Default")
                oDraftView = osheet.DrawingViews.AddAssociativeDraftView(otargetDoc, oPoint1, DrawingViewScale)

 I have one base view and one draft view created all at point1 with the same scale. It seems to me the base view's center is at point1. But not that of the draft view.

 

Just wondering how to overlay them to looks like one view with the same origin point. Or what coordinate I adjust, so I can draw on draft view, but looks like I was drawing on the base view?

 

Some additional lines are needed in drawing but can't get from projection of a model. 

 

Regards,

 

Peter

 

0 Likes
287 Views
1 Reply
Reply (1)
Message 2 of 2

xiaodong_liang
Autodesk Support
Autodesk Support

Hi,

 

In default, the orign of the drafview is at (0,0) of the sheet. In editing sketch, the geometries of sketch follow the (0,0). After exiting the editing, you will find the  geometries of sketch move to other location if AddAssociativeDraftView set the Position to other value than (0,0). While the center of the draft view is the center of boundingbox of all the geometries of sketch. 

 

So, if want you want is to set the origin of the draft view at the same location of the left-bottom point of the base view, you can just calculate it by oBaseView.Left,  oBaseView.Center and  oBaseView.Height. Then add the draft view with the point.

0 Likes