Polyline with Arc

Polyline with Arc

ditran7577
Advocate Advocate
2,383 Views
6 Replies
Message 1 of 7

Polyline with Arc

ditran7577
Advocate
Advocate

Hi everyone,

 

I'm having a problem when I create polyline with arc using vb.net. The arc is a quarter of ellipse. Please see picture below for detail.

test.png

 


Thanks any helps.

0 Likes
Accepted solutions (1)
2,384 Views
6 Replies
Replies (6)
Message 2 of 7

R.Gerritsen4967
Advocate
Advocate

An ellipse is not an arc and cannot be joined to a polyline.

 

Maybe you can try to facet the ellipse. With this you turn the ellipse into a polyline that's almost (but not exactly!) following the same path as the ellipse.

 

Here's an excellent explanation, including some code...

 

http://through-the-interface.typepad.com/through_the_interface/2009/12/faceting-autocad-curves-using...

0 Likes
Message 3 of 7

ditran7577
Advocate
Advocate

How about SPLINE! Can we create a spline like blue arc (in picture)?

 

Thanks,

 

0 Likes
Message 4 of 7

_gile
Consultant
Consultant

Hi,

 

Have a look at the GeometryExtensions library, specialy the PolylineSegment and PolylineSegmentCollection classes.

There's an example on how to use them here.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 5 of 7

ditran7577
Advocate
Advocate

Thank for help. Are there any way to draw only a quarter of ellipse. 

0 Likes
Message 6 of 7

_gile
Consultant
Consultant

You can set the StartAngle and EndAngle properties of the Ellipse instance. Angles are measured in radians CCW from the MajorAxis vector.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 7 of 7

ditran7577
Advocate
Advocate
Accepted solution

Thank Gilles. This is exactly what I’m looking for.

0 Likes