Why the dimension is wrong with LineAngularDimension2?

Why the dimension is wrong with LineAngularDimension2?

songmaverick
Contributor Contributor
310 Views
3 Replies
Message 1 of 4

Why the dimension is wrong with LineAngularDimension2?

songmaverick
Contributor
Contributor

I need to create many dimensions and I use for loop to create many dimension. But I always get the a wrong dimension like picture 

the code is as follows:

for (int k = 0; k < line_tap.Count; k++) {
    LineAngularDimension2 lad = new LineAngularDimension2();
    lad.XLine1Start = verticalCenterLine.StartPoint;
    lad.XLine1End = verticalCenterLine.EndPoint;
    Line line_tap_first = (Line)line_tap[k].GetObject(OpenMode.ForRead);
    lad.XLine2Start = line_tap_first.StartPoint;
    lad.XLine2End = line_tap_first.EndPoint;
    double lad_arcPoint_x = (line_tap_first.EndPoint.X + line_tap_head.EndPoint.X) / 2;
    double lad_arcPoint_y = line_tap_first.EndPoint.Y - 10 - 5 * k;
    lad.ArcPoint = new Point3d(lad_arcPoint_x, lad_arcPoint_y, 0);
    list.Add(lad);
}

 

PixPin_2025-02-05_13-58-58.png

 

Anyone could help me ?

Thank you in advance!!

0 Likes
311 Views
3 Replies
Replies (3)
Message 2 of 4

paullimapa
Mentor
Mentor

perhaps should post in the autocad objectarx forum 

https://forums.autodesk.com/t5/objectarx/bd-p/34


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 4

songmaverick
Contributor
Contributor

Thank you 

 

0 Likes
Message 4 of 4

paullimapa
Mentor
Mentor

you are welcome...cheers!!!


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes