.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Polyline with Arc

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
ditran7577
1743 Views, 6 Replies

Polyline with Arc

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.

6 REPLIES 6
Message 2 of 7

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...

Message 3 of 7

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

 

Thanks,

 

Message 4 of 7
_gile
in reply to: ditran7577

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

Message 5 of 7
ditran7577
in reply to: _gile

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

Message 6 of 7
_gile
in reply to: ditran7577

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

Message 7 of 7
ditran7577
in reply to: _gile

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost