AnsweredAssumed Answered

Add angular dimension between lines via API

Question asked by Hepzibah Chandranand on Sep 9, 2019
Latest reply on Sep 10, 2019 by Hepzibah Chandranand

Hi,

 

I create two lines like:

var line1 = modelDoc.SketchManager.CreateLine(Xc, Yc, Zc, X1, Y1, Z1);
var line2 = modelDoc.SketchManager.CreateLine(Xc, Yc, Zc, X2, Y2, Z2);

   where c, 1, 2 are MathPoints

What is the code to add the angular dimension between these two lines as soon as the lines are created?

 

Two additional things to achieve at runtime:

- the dimension text's location need to be at the center

- how to mark negative angle

Outcomes