Drawing View GetOutline

Hi SW Community,

Can anyone explain to me about GetOutline of a drawing View?

Because I am currently creating line inside the view using the GetOutline.

but it oesnt work well.

below is the code I used in creating the line.

double[] vOutLine = (double)View.GetOutline();

swDocDraw.SketchManager.CreateLine(0, vOutLine[1], 0, 0, vOutLine[3], 0);

below should be the output but using the GetOutline doesnt work well, the line is too small.

Thanks in advance.

DiAnne

SolidworksApi macros