Results 1 to 6 of 6

Thread: Edit lines to polyline & remove vertices

  1. #1
    Active Member
    Join Date
    2016-01
    Posts
    88
    Login to Give a bone
    0

    Default Edit lines to polyline & remove vertices

    I'm working in AutoCAD 2004. I have a drawing from another company with what are supposed to be lots contour lines. Before I received it someone turned the contour splines into polylines and then exploded them, leaving each "contour" on the correct elevation, but made up of hundreds (and hundreds!) of tiny line segments. I need to turn these back into polylines and then remove vertices. Getting them into polylines with the pedit command is very time consuming, does anyone have an idea to streamline this task? Also, I have been unable to find a lisp routine that will remove vertices in V2004...any suggestions? Thanks!

  2. #2
    AUGI Director scott.wilcox's Avatar
    Join Date
    2015-11
    Location
    Edmonton, Alberta
    Posts
    990
    Login to Give a bone
    0

    Default Re: Edit lines to polyline & remove vertices

    Quote Originally Posted by gadjet
    I'm working in AutoCAD 2004. ... Getting them into polylines with the pedit command is very time consuming, ...any suggestions? Thanks!
    Converting lines to polylines is very quick in 2004. PEDIT, multiple, then select all the contour lines, and select a fuzz factor.

    Weeding polylines is not available in vanilla AutoCAD AFAIK, but there's a product called GeoTools that does it nicely.

  3. #3
    All AUGI, all the time Firmso's Avatar
    Join Date
    2006-03
    Location
    Here, Still
    Posts
    549
    Login to Give a bone
    0

    Default Re: Edit lines to polyline & remove vertices

    Quote Originally Posted by gadjet
    I'm working in AutoCAD 2004. I have a drawing from another company with what are supposed to be lots contour lines. Before I received it someone turned the contour splines into polylines and then exploded them, leaving each "contour" on the correct elevation, but made up of hundreds (and hundreds!) of tiny line segments. I need to turn these back into polylines and then remove vertices. Getting them into polylines with the pedit command is very time consuming, does anyone have an idea to streamline this task? Also, I have been unable to find a lisp routine that will remove vertices in V2004...any suggestions? Thanks!

    1. Command : Mpedit > Enter > select all contour lines > Enter
    2. Command : Flatten > Enter > select all contour lines > Enter > Remove hidden lines? "No" > Enter

    Hope this helps
    Last edited by Firmso; 2006-07-12 at 06:54 AM.

  4. #4
    Certifiable AUGI Addict ccowgill's Avatar
    Join Date
    2004-08
    Location
    Iron Station, NC
    Posts
    3,198
    Login to Give a bone
    0

    Default Re: Edit lines to polyline & remove vertices

    use the express tool "PLJOIN" to put them all together then change the PEDITACCEPT system variable to 0 and use the express tool "OVERKILL" to eliminate any segments that can be eliminated.

  5. #5
    Active Member
    Join Date
    2016-01
    Posts
    88
    Login to Give a bone
    0

    Default Re: Edit lines to polyline & remove vertices

    Thanks for all the help, I got them all back together and the file is now small enough for my purpose...even with the millions of vertices! Still, if anyone knows where I can download a routine for removing vertices (V2004), I'd like to have it in my toolbox for the next time! Thanks again

  6. #6
    AUGI Director scott.wilcox's Avatar
    Join Date
    2015-11
    Location
    Edmonton, Alberta
    Posts
    990
    Login to Give a bone
    0

    Default Re: Edit lines to polyline & remove vertices

    Quote Originally Posted by gadjet
    Thanks for all the help, I got them all back together and the file is now small enough for my purpose...even with the millions of vertices! Still, if anyone knows where I can download a routine for removing vertices (V2004), I'd like to have it in my toolbox for the next time! Thanks again
    See my earlier post above for a link.

    Scott

Similar Threads

  1. Replies: 1
    Last Post: 2012-01-05, 09:13 PM
  2. Add vertices to a 3d Polyline
    By td729 in forum AutoCAD Civil 3D - General
    Replies: 17
    Last Post: 2008-06-17, 04:49 PM
  3. No. of Vertices in a PolyLine
    By snviswanadha in forum AutoLISP
    Replies: 20
    Last Post: 2006-10-11, 01:50 PM
  4. Add/Remove Grips/Vertices
    By Steve_Bennett in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2005-08-04, 08:43 PM
  5. Add/remove vertices to polyline
    By caduzer in forum AutoCAD General
    Replies: 1
    Last Post: 2005-03-30, 06:45 PM

Posting Permissions

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