programmatically create angle annotation

Questions, comments and suggestions concerning VintaSoft Annotation .NET Plug-in.

Moderator: Alex

Post Reply
rwallace
Posts: 5
Joined: Tue Jun 28, 2011 6:48 pm

programmatically create angle annotation

Post by rwallace »

I tried to programmtically create an angle annotation. However, when the angle appears, the "angle arc" and the "angle value" are NOT displayed. Even when I alter the end point locations on the viewer itself, the "arc" and "value" are not displayed. is this by desgin, am i missing something, or is this a bug? How do i create an angle annotation through code?

my code snippet:
var angleAnn = new AngleAnnotation();
angleAnn.StartPoint = new PointF(0,0);
angleAnn.VertexOfAngle = new PointF(-38,373);
angleAnn.EndPoint = new PointF(153, 67);
angleAnn.FormatString = "0.0 in";
angleAnn.UnitOfMeasure = UnitOfMeasure.Inches;
angleAnn.Location = new PointF(614, 142);
_annotationViewer1.Annotations[0].Add(angleAnn);


i am using version 4.3.19.5 of VintaSoftImaging.NET SDK 4.3.

Robert
rwallace
Posts: 5
Joined: Tue Jun 28, 2011 6:48 pm

Re: programmatically create angle annotation

Post by rwallace »

i thought this had posted previously:

On a sepearate note, if I serialize and desrialize the object, the resulting annotation displays the arc angle and the angle value. Not sure why, but I guess something is triggered. i noticed that when debugging the non arc displaying annotation, the angle = 0; while the second annotation that dislpays the arc and value has the real angle value.
Alex
Site Admin
Posts: 2364
Joined: Thu Jul 10, 2008 2:21 pm

Re: programmatically create angle annotation

Post by Alex »

Hello,

Thank you for your message, we have fixed the problem in version 4.3.23.1 of VintaSoftImaging.NET SDK.

Best regards, Alexander
Post Reply