+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Forum Newbie
    AutoCAD 2010
    Join Date
    Apr 2015

    Default lisp for trimming/ breaking a polyline or line

    Registered forum members do not see this ad.

    Hi guys, just new to the autolisp world and would like to ask your assistance in making a lisp so it can be a basis for my future lisp programs.

    Here is the flow of the lisp.

    Overview: the lisp trims or break a polyline or a line a the point (midpoint) indicated by the user by a value specified by a user.
    The distance value indicated should be followed even if the polyline or line is angled.

    First: the user is asked of how much the value of the trim/ break to be done on the polyline or line.
    2nd : the user is asked to chose the point where the trim / break will be done.
    3rd: click the next point on the line or polyline or press esc to exit.

    Sample, I inputted 1000mm for the value and click at the midpoint of the polyline, the trim should be 500mm on both side of the polyline.
    As long as I don’t cancel, I will just continue to choose the next point to trim/ break.

    Thank you in advance and more power

  2. #2
    Quantum Mechanic BIGAL's Avatar
    Civil 3D 2016
    Join Date
    Dec 2005


    The line is easy just pick your pt say center as part of this it returns the object via entsel so you can get start & end pts, get angle of line, do 2 quick polars and you have your break points.

    The pline a lot more complicated if you want it broken and pline section is short I am sure others will advise. 1 routine should do both objects. Ps I am interested in this also for something else to do with plines.
    A man who never made mistakes never made anything

  3. #3
    Super Member
    Computer Details
    tombu's Computer Details
    Operating System:
    Windows 7 64-bit
    tombu's Discipline Details
    Design Analyst
    Small Street & Stormwater projects. Traffic Calming and other issues.
    Civil 3D 2018
    Join Date
    Dec 2010
    Tallahassee, FL USA


    Registered forum members do not see this ad.

Similar Threads

  1. Breaking Polyline at Vertexes
    By notview in forum AutoLISP, Visual LISP & DCL
    Replies: 13
    Last Post: 30th Sep 2013, 05:30 am
  2. Trimming everything outside a closed Polyline
    By Bobzy20 in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 23
    Last Post: 22nd May 2013, 10:37 pm
  3. Trimming Polyline 2013
    By Simple153 in forum AutoCAD General
    Replies: 3
    Last Post: 23rd Oct 2012, 04:30 pm
  4. Breaking and deleting segments of a Polyline
    By bkruger in forum AutoLISP, Visual LISP & DCL
    Replies: 10
    Last Post: 20th Apr 2010, 09:42 pm
  5. polyline breaking block
    By hokie555 in forum AutoLISP, Visual LISP & DCL
    Replies: 2
    Last Post: 30th Oct 2009, 05:16 pm

Tags for this Thread


Posting Permissions

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