+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17
  1. #1
    Forum Newbie
    Using
    AutoCAD 2009
    Join Date
    Jun 2010
    Posts
    7

    Default AutoLISP Triming everything on one side of a line

    Registered forum members do not see this ad.

    I am looking a way to trim everything sticking out on one side of a line, and if possible select lines that need to be all extended to the other side of the line. I am working on a really large file that needs a lot of editing with trim on one side of the line and extending all the line on the other side of the line. If anybody can help i would really really appreciate it.

    Thank You

  2. #2
    Luminous Being alanjt's Avatar
    Using
    Civil 3D 2011
    Join Date
    Apr 2008
    Posts
    6,012

    Default

    Express Tools: EXTrim
    DropBox | finding the light...
    Seann: ...it went crazy ex-girlfriend on me...
    eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...

  3. #3
    Forum Newbie
    Using
    AutoCAD 2009
    Join Date
    Jun 2010
    Posts
    7

    Default

    Im not sure how that command works because i tried it and it still left a few things untrimed even tho when i use the trim command it gets trimmed

  4. #4
    Luminous Being alanjt's Avatar
    Using
    Civil 3D 2011
    Join Date
    Apr 2008
    Posts
    6,012

    Default

    EXTRIM.gif...........
    DropBox | finding the light...
    Seann: ...it went crazy ex-girlfriend on me...
    eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...

  5. #5
    Forum Newbie
    Using
    AutoCAD 2009
    Join Date
    Jun 2010
    Posts
    7

    Default To much trimming, need an easier way of doing this

    oh wow thank you so much, i finally figured it with your help. Nice Video!

    Do you have any ideas of how i can make a messy file with many lines overlapping into a clean file with zero lines overlapping?

    I also attached a jpg of the drawing that im working on and i am trying to make the edges of the street blocks straight because they were imported using another program and they came out very crooked. Do you have an easy method of doing this?

    Right now i am trimming away and i only showed you a small clip of the whole drawing. There are line 15-20 blocks with about 45-60 lots on each block.

    If you have any idea how i can make this process go faster i would greatly appreciate it.

    Thanks for the help

    Feliks
    Attached Images

  6. #6
    Senior Member
    Using
    Map 3D 2008
    Join Date
    Apr 2009
    Location
    The one after 909
    Posts
    402

    Default

    I do this sort of stuff at my work (road edges, lot lines, etc) and from my experience, it's best to just accept that it'll never be straight I think most of that data is obtained by satellite or from ancient records, and I seriously doubt anyone who had a hand in creating the file cared much about making nice neat straight lines that looked super pretty. For what it's worth, it irks me to no end as well.

    If you absolutely must make them straight, you could draw a polyline or xline to approximate it, and then manually move all the points to that line, or just use that line to trim out the spots that are screwy. There may be some complex way of speeding up that process, but I wouldn't know how. The only other thing I could think to suggest would be to re-think how you're importing it, but that's a long shot.
    ~* And, in the end, the love you take *~
    ~* Is equal to the love you make *~
    - The Beatles -


    GrPlayground
    / Text Find/Replace / Batch Engine / Tower Defense

  7. #7
    Luminous Being alanjt's Avatar
    Using
    Civil 3D 2011
    Join Date
    Apr 2008
    Posts
    6,012

    Default

    I agree. GIS, etc. data is just ugly as hell.

    This is the best I could come up with:

    LWS.gif
    DropBox | finding the light...
    Seann: ...it went crazy ex-girlfriend on me...
    eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...

  8. #8
    Senior Member
    Using
    Map 3D 2008
    Join Date
    Apr 2009
    Location
    The one after 909
    Posts
    402

    Default

    How'd you manage that, Alan? I struggled for days trying to figure out a linear least squares formula (the ultimate goal was to get it done for a circle, but I still can't figure that one out).
    ~* And, in the end, the love you take *~
    ~* Is equal to the love you make *~
    - The Beatles -


    GrPlayground
    / Text Find/Replace / Batch Engine / Tower Defense

  9. #9
    Luminous Being alanjt's Avatar
    Using
    Civil 3D 2011
    Join Date
    Apr 2008
    Posts
    6,012

    Default

    It's doesn't do anything fancy like that. It just removes all interior segments, so the LWPolyline is a single segment curve.

    What're you trying to do? I'm not fully understanding.
    DropBox | finding the light...
    Seann: ...it went crazy ex-girlfriend on me...
    eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...

  10. #10
    Forum Newbie
    Using
    AutoCAD 2009
    Join Date
    Jun 2010
    Posts
    7

    Default Thanks for the reply

    Registered forum members do not see this ad.

    Really thats funny that you have to do the same. Well the only problem with accepting it is that after i import all the lots and streets and road etc. i have to hatch each item seperately, the roads, the building footprints, and the streets. To do that i need some kinda of boundary and its really difficult to get an easy boundary from the imported files. Anyways if you have any idea about hatching it easier let me know

Similar Threads

  1. dimensioning all crossing lines or ... in one side of a selected line!!!
    By kasra in forum AutoLISP, Visual LISP & DCL
    Replies: 3
    Last Post: 27th Apr 2010, 04:25 am
  2. Help drawing a curve side to side inside a rectangle
    By berol in forum AutoCAD Beginners' Area
    Replies: 3
    Last Post: 10th Apr 2010, 05:45 pm
  3. pline with 1 side hidden & 3 sides cont'' but all as 1 joined line
    By stevsmith in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 4
    Last Post: 11th Feb 2010, 11:28 am
  4. application Failed...because its side-by-side configuration
    By Riverfriends in forum AutoCAD Bugs, Error Messages & Quirks
    Replies: 1
    Last Post: 4th Aug 2009, 01:56 pm
  5. Triming line to blocks VBA
    By Figment in forum AutoLISP, Visual LISP & DCL
    Replies: 6
    Last Post: 15th Aug 2007, 10:51 pm

Bookmarks

Posting Permissions

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