I was wondering if anybody knows hot to get the angle of a preselect edge in a drawing view using a macro
I would like to make a rotate view macro that aligns an edge vertical or horizontal.
The built in function in SW doesn't work reliable.
I guess you need IView::ModelToViewTransform
Create a MathVector using the end points of the selected edge.
Multiply that by the transform above.
The result should be a 2d vector which you can measure the angle of.
Retrieving data ...