Results 1 to 8 of 8

Thread: Custom command to automatically "Break at Point" everywhere on a drawing

  1. #1
    Login to Give a bone
    0

    Default Custom command to automatically "Break at Point" everywhere on a drawing

    Hey all,

    I need a custom command that would search through the drawing and break any line or arc segments if there is a coincident endpoint of another segment that lies on the segment.

    The existing macro in the ribbon is "Break at Point", it's a special case of the BREAK command.

    I need a custom AutoLISP command to automatically perform this everywhere on the entire drawing.

    This can be simplified by assuming that all segments are on the same layer. Bonus points if they don't have to be on the same layer, but not required.

    How would I approach this challenge? Anyone want a go at it?

    Insight is appreciated.

    Thanks!

  2. #2
    I could stop if I wanted to
    Join Date
    2005-06
    Location
    CORDOBA-ARGENTINA
    Posts
    275
    Login to Give a bone
    0

    Default Re: Custom command to automatically "Break at Point" everywhere on a drawing

    Please upload a sample dwg .
    Would it only break if the end point lay on the other segment. ?

  3. #3
    Login to Give a bone
    0

    Default Re: Custom command to automatically "Break at Point" everywhere on a drawing

    Quote Originally Posted by devitg.89838 View Post
    Please upload a sample dwg .
    Would it only break if the end point lay on the other segment. ?
    I have uploaded an example DWG with explanation. When the AutoLISP command is invoked there should be 8 "Break at Point" actions taking place.

    Insight is appreciated.

    Thanks!
    Attached Files Attached Files

  4. #4
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,667
    Login to Give a bone
    0

    Default Re: Custom command to automatically "Break at Point" everywhere on a drawing

    Break All or Some by CAB is the most complete set of BREAK tools I know of:
    https://www.theswamp.org/index.php?topic=10370.0

  5. #5
    Login to Give a bone
    0

    Default Re: Custom command to automatically "Break at Point" everywhere on a drawing

    Quote Originally Posted by Tom Beauford View Post
    Break All or Some by CAB is the most complete set of BREAK tools I know of:
    https://www.theswamp.org/index.php?topic=10370.0
    I tried out the tool but it's not breaking at points on segment. Might be useful as a programming reference, but otherwise it doesn't do what I need.

  6. #6
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: Custom command to automatically "Break at Point" everywhere on a drawing

    Quote Originally Posted by whackoprogrammer760234 View Post
    I have uploaded an example DWG with explanation. When the AutoLISP command is invoked there should be 8 "Break at Point" actions taking place.
    If by chance, you have AutoCAD MAP or Civil 3D (which is built on MAP) - then the built-in MAPCLEAN command will do this for you.
    R.K. McSwain | CAD Panacea |

  7. #7
    Login to Give a bone
    0

    Default Re: Custom command to automatically "Break at Point" everywhere on a drawing

    Quote Originally Posted by rkmcswain View Post
    If by chance, you have AutoCAD MAP or Civil 3D (which is built on MAP) - then the built-in MAPCLEAN command will do this for you.
    Sadly, no. Just the regular AutoCAD 2018. No MAPCLEAN command on mine.

  8. #8
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,667
    Login to Give a bone
    0

    Default Re: Custom command to automatically "Break at Point" everywhere on a drawing

    Quote Originally Posted by whackoprogrammer760234 View Post
    I tried out the tool but it's not breaking at points on segment. Might be useful as a programming reference, but otherwise it doesn't do what I need.
    Worked on your example.dwg, had to select the two lines to break and the four lines to break them. Selecting All prior to running the command then Previous when prompted by BreakAll should work for the whole drawing. What did it do when you tried it?

Similar Threads

  1. 2014: Survey point label - how to "not view point number" in CAD drawing
    By MapperLee in forum AutoCAD Civil 3D - General
    Replies: 2
    Last Post: 2015-10-15, 04:25 PM
  2. How to automatically fill in & update "Drawing #" attribute using filename
    By GreyHippo in forum AutoCAD Sheet Set Manager
    Replies: 18
    Last Post: 2009-04-04, 06:26 AM
  3. Custom or "invisible" break symbol
    By joe.williams in forum Inventor - General
    Replies: 1
    Last Post: 2008-01-05, 12:14 AM
  4. Replies: 1
    Last Post: 2006-06-13, 06:36 PM
  5. "Break line" command in ACAD 2004
    By jack.frahm in forum AutoCAD General
    Replies: 6
    Last Post: 2005-03-06, 05:48 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
  •