.NET

Reply
Active Contributor
xdbk07
Posts: 42
Registered: ‎11-06-2012
Message 1 of 7 (461 Views)
Accepted Solution

Polyline with Arc

461 Views, 6 Replies
08-23-2013 12:36 AM

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.

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

Active Contributor
R.Gerritsen4967
Posts: 47
Registered: ‎07-31-2009
Message 2 of 7 (454 Views)

Re: Polyline with Arc

08-23-2013 12:52 AM in reply to: xdbk07

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

Active Contributor
xdbk07
Posts: 42
Registered: ‎11-06-2012
Message 3 of 7 (448 Views)

Re: Polyline with Arc

08-23-2013 01:10 AM in reply to: R.Gerritsen4967

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

 

Thanks,

 

*Expert Elite*
_gile
Posts: 2,114
Registered: ‎04-29-2006
Message 4 of 7 (430 Views)

Re : Polyline with Arc

08-23-2013 04:38 AM in reply to: xdbk07

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
Active Contributor
xdbk07
Posts: 42
Registered: ‎11-06-2012
Message 5 of 7 (409 Views)

Re : Polyline with Arc

08-24-2013 12:31 AM in reply to: _gile

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

*Expert Elite*
_gile
Posts: 2,114
Registered: ‎04-29-2006
Message 6 of 7 (401 Views)

Re : Polyline with Arc

08-24-2013 03:47 AM in reply to: xdbk07

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

Gilles Chanteau
Active Contributor
xdbk07
Posts: 42
Registered: ‎11-06-2012
Message 7 of 7 (359 Views)

Re : Polyline with Arc

08-27-2013 10:39 PM in reply to: _gile

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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!