It's an old question, and I have been puzzled for a long time.
I want to create line "AC","AB". so I must get the coordinate value of point "A" base off view , not base off drawing
because the line "AB" or "Ac" I want to create belong to view,not belong to drawing.
use IView::Position can get the position of the model view's origin in the drawing. but it's no use
sometimes the corrdinate value of point "A" is (0,0,0) base off view,
then I can use ModelDoc2.SketchManager.CreateCenterLine 0#, 0#, 0#, 0.5*Cos(ang), 0.5*sin(ang), 0# (ang=3.14*70/180)
but sometimes the corrdinate value of point "A" is unsurence, it's determined by if exist other part in the Model,
though the cylinder was created always at the origin
How do i do?
Yuan zhengjun
SolidworksApi macros