• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Visual LISP, AutoLISP and General Customization

    Reply
    Active Contributor
    Posts: 28
    Registered: ‎11-23-2009

    Curve from polyline segments

    277 Views, 6 Replies
    04-13-2012 02:50 AM

    Hi!

     

    I´m looking for oportunities to can modify a polyline with 4 or more segments in a polyline with arc. I think it´s possible to pick start and end segment first and than all straight segements to will be in arc segments. Have you a idea to can do this.

    Please use plain text.
    *Expert Elite*
    Posts: 6,464
    Registered: ‎06-29-2007

    Re: Curve from polyline segments

    04-13-2012 02:54 AM in reply to: cadplayer

    Hi,

     

    I'm not able to imagine what you want to do, e.g how should this polyline with 4 segments be converted to one arc?

     

    Prepare some samples so we can see the rules you'd like to follow.

     

    - alfred -

    -------------------------------------------------------------------------
    Alfred NESWADBA
    Ingenieur Studio HOLLAUS ... www.hollaus.at
    -------------------------------------------------------------------------
    Please use plain text.
    Active Contributor
    Posts: 28
    Registered: ‎11-23-2009

    Re: Curve from polyline segments

    04-13-2012 03:14 AM in reply to: alfred.neswadba

    Have a look, in example you can see a polyline with 5 segments. Maybe Autocad have a function which I don´t know to modify segement 2,3,4 in arc-entities so all arc goes tagential in together. It´s a little complicate as use fillet only and I don´t realy like to use pedit to confirm in a curve, better is a polyline with line and arc.

    Please use plain text.
    *Expert Elite*
    Posts: 6,464
    Registered: ‎06-29-2007

    Re: Curve from polyline segments

    04-13-2012 03:22 AM in reply to: cadplayer

    Hi,

     

    if you would like a progi that automatically finds that situations where an arc may fit .... it's not the easiest job with a lot of intelligence within the app.

     

    If you want to get this result with support by the user you can:

    • draw a circle with tangent to first curve, tan to last curve and a point to pass through (in your sketch point 3)
    • start _TRIM and trim the "inner side" of the circle and the polyline-segments
    • connect the resulting objects using _PEDIT.

     

    - alfred -

    -------------------------------------------------------------------------
    Alfred NESWADBA
    Ingenieur Studio HOLLAUS ... www.hollaus.at
    -------------------------------------------------------------------------
    Please use plain text.
    Active Contributor
    Posts: 28
    Registered: ‎11-23-2009

    Re: Curve from polyline segments

    04-13-2012 04:01 AM in reply to: alfred.neswadba

    Yes I done it before but I was asking if there another solution maybe with lisp. I need thinking little...

    Please use plain text.
    Active Contributor
    Posts: 28
    Registered: ‎11-23-2009

    Re: Curve from polyline segments

    04-16-2012 11:29 AM in reply to: cadplayer
    Is it possible to erase segments from polyline
    Please use plain text.
    *Expert Elite*
    Posts: 6,464
    Registered: ‎06-29-2007

    Re: Curve from polyline segments

    04-16-2012 12:10 PM in reply to: cadplayer

    Hi,

     

    >> Is it possible to erase segments from polyline

    I would do a _BREAK and show the points (start- and endpoint of the segment(s)).

    Without development there is no command or function available for "erase segment of polyline".

     

    - alfred -

    -------------------------------------------------------------------------
    Alfred NESWADBA
    Ingenieur Studio HOLLAUS ... www.hollaus.at
    -------------------------------------------------------------------------
    Please use plain text.