Results 1 to 6 of 6

Thread: remove arcs from 2d pline

  1. #1
    Member
    Join Date
    2005-02
    Posts
    20

    Default remove arcs from 2d pline

    I have been trying to find a routine that will remove the arcs from a 2d pline and replace with short segments. This is to facilitate better surface modeling in Land Desktop 2006.

    I have tried the web to no avail. Can anyone help?

    Thanks

  2. #2
    AUGI Addict
    Join Date
    2005-08
    Posts
    1,043

    Default Re: remove arcs from 2d pline

    You can try this. Once you get the ename of the polyline, pass it to this.

    Code:
    (defun MakeStraightPline (ename)
    
    (entmake
     (mapcar
      '(lambda (x)
       (if
        (and
         (equal (car x) 42)
         (not (equal (cdr x) 0.0 0.00001))
        )
        (cons 42 0.0)
        x
       )
      )
      (entget ename)
     )
    )
    )

  3. #3
    All AUGI, all the time
    Join Date
    2003-12
    Location
    Northern California
    Posts
    561

    Default Re: remove arcs from 2d pline

    Try THIS LINK that has both a VBA and Lisp solution.

    Tim, although technically correct, the OP asked about replacing the arcs with short line segments.

    HTH,
    Jeff

  4. #4
    AUGI Addict
    Join Date
    2005-08
    Posts
    1,043

    Default Re: remove arcs from 2d pline

    Good catch Jeff. I guess it's the civil background that you have, and I don't.

  5. #5
    Member
    Join Date
    2005-02
    Posts
    20

    Default Re: remove arcs from 2d pline

    Sorry I didn't reply sooner.
    I appreciate your help.

  6. #6
    I could stop if I wanted to 09silverado's Avatar
    Join Date
    2005-12
    Location
    Connecticut
    Posts
    484

    Default Re: remove arcs from 2d pline

    convert them to ldt contours, it will ruin all of your nice curved lines just the way you want then you can explode them all at once back to a polyline.

    i hate ldt concept of contouring just for that reason, besides the huge file sizes.
    Thank you kindly
    Cad Committee Technical Adviser
    R14 - C3D 2012
    http://www.youtube.com/user/butzers03xtreme I drive a Silverado, its loud and i like it

Similar Threads

  1. SelectByPolygon with arcs
    By jmusselman in forum VBA/COM Interop
    Replies: 2
    Last Post: 2009-12-21, 06:08 PM
  2. ARCS
    By victoria in forum AutoCAD General
    Replies: 3
    Last Post: 2007-10-08, 05:05 PM
  3. Need help with scaling arcs
    By whdjr in forum Dynamic Blocks - Technical
    Replies: 5
    Last Post: 2006-05-24, 07:45 PM
  4. request for arcs
    By pikathoidingjam in forum AutoCAD General
    Replies: 5
    Last Post: 2004-09-26, 03:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •