"Break at Point" command shortcut

Anonymous

"Break at Point" command shortcut

Anonymous
Not applicable

Is there a keyboard shortcut for "Break at Point"?  Can I reassign "br" from "Break" to "Break at Point"?

0 Likes
Reply
Accepted solutions (2)
21,258 Views
12 Replies
Replies (12)

Patchy
Mentor
Mentor
Accepted solution
0 Likes

Kent1Cooper
Consultant
Consultant
Accepted solution

@Anonymous wrote:

Is there a keyboard shortcut for "Break at Point"?  Can I reassign "br" from "Break" to "Break at Point"?


Here's what I use as a command name to specifically do that:

 

(defun C:BF1 (); = Break with First option at 1 point
  (command "_.break" pause "_first" pause "@")
)

 

You could change that BF1 command name to BR, if you prefer, and remove BR as the standard alias for Break.  The description at the icon in the Modify area of the Ribbon is a little misleading, in that it indicates BREAK as the command name but it doesn't just start a BREAK command, but incorporates options.  And it's also misleading in that the wording "Breaks the selected object at a single point" could be interpreted to mean it Breaks the object at the point where you select it  [and a routine could easily be made to do that if desired*], when it does ask for a point to Break at after  selecting.  That's why I prefer the command name with the F in it, for the First option that it invokes.

 

* Like this:
(defun C:B1S (); = Break 1 point where Selected
  (command "_.break" pause "@")
)

 

Kent Cooper, AIA

gonecrawfishin
Enthusiast
Enthusiast
0 Likes

Design
Observer
Observer

Hello. I realize this post is years old but I wanted to try anyway. Is there a way to save this command in AutoCAD?

0 Likes

Patchy
Mentor
Mentor

Yes, paste the code into a text file and save as B1S.lsp

Put this anywhere, and use APPLOAD command in Autocad, Put it in the startup suit.

Restart Autocad.

0 Likes

Anonymous
Not applicable

These days I just type "BR", then select the object, and then type "F" for first, select my break point, and then select the same point again (assuming OSNAP is on).  I find that out-of-the-box functionality is as good as a custom .lsp

 

0 Likes

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

These days I just type "BR", then select the object, and then type "F" for first, select my break point, and then select the same point again (assuming OSNAP is on).  ....


That's exactly what the BF1 command at the beginning of Message 3 does, saving you the trouble of typing in the F and of re-selecting the same point [and whether or not Osnap is on].

Kent Cooper, AIA

Kent1Cooper
Consultant
Consultant

@Design wrote:

Hello. I realize this post is years old but I wanted to try anyway. Is there a way to save this command in AutoCAD?


You don't actually specify which of the two commands [@Patchy instructs about one of them], but I also have some further elaboration.

 

You can put both command definitions in the same file if you want both.  And whether or not you do, you can give such a file any name you want [it doesn't need to be the same as the command name], as long as the filetype ending in .lsp.  You can use a more descriptive name, so you can tell what it's about when looking at a list of files, such as maybe Break1pt.lsp.

 

But my preferred way, which doesn't use a file named for the command(s), but will have it/them loaded in all drawings automatically, is using the acaddoc.lsp file.  If you don't know whether you already have one, type in:

(findfile "acaddoc.lsp")

If that returns the file name with a file path, open that file in a plain-text editor such as Notepad, paste the code for the command(s) in at the end, and save the file.  If the search returns nil, paste the code into Notepad and save it to that file name, preferably in a folder similar to this:

C:\Users\username\AppData\Roaming\Autodesk\AutoCAD 20xx\Rversion\language\support

THEN those command definitions will be loaded automatically into every drawing you start or open.  You don't need to restart AutoCAD as you would with entries in the Startup Suite, though if you want to use the command(s) in any drawing you already have open at the time, you would need to either close and re-open the drawing, or use APPLOAD to navigate to and load that acaddoc.lsp file.

 

You will find other things to put into that file, to have them loaded in every drawing.

 

[Things that are put in the Startup Suite "briefcase" in APPLOAD, according to the description of that at least, are run when AutoCAD is first started up (hence the name, and the reason you need to restart when you add something to it), but not again in every drawing opened.  That may not really be true -- it seems at least some things that are individual-drawing-specific may get into all drawings from there, but I'm wary of counting on that, not knowing what determines which ones will behave that way.]

Kent Cooper, AIA
0 Likes

pendean
Community Legend
Community Legend
@Anonymous if you are running a current version of any variant of AutoCAD, that command is built-in now and called BREAKATPOINT command, look it up in HELP. I abbreviated it to B1 for me which you can do in the PGP file like you have been for 30-years now.

0 Likes

Kent1Cooper
Consultant
Consultant

@pendean wrote:
.... that command is built-in now and called BREAKATPOINT command....


.... if the command they're talking about is the one called BF1 in Message 3.  If they mean the B1S command, that's not the same as what BREAKATPOINT does.

Kent Cooper, AIA
0 Likes

james.lord9MVZK
Contributor
Contributor

Hello sir Kent,  love the BL1 lisp...thank you for the magic! I have a question, well maybe more of a what am I doing wrong checklist:

 

  1. I took your lisp file, created a 'Acaddoc.lsp' file, copied your syntax in there.
    • (defun C:BF (); = Break with First option at 1 point
      (command "_.break" pause "_first" pause "@")
      )
  2. Changed the alias to "BF", not sure if that is the issue.
  3. In our AutoCAD Profile --> Files tab --> Support --> I added the location to the 'Acaddoc.lsp' file à moved that location to the top of the list.
  4. Added the folder to the ‘trusted sites’ area as well.
  5. Exported the Profile
  6. When I tried to open the profile on another machine it says the “BF” command is unknown.

What am I doing wrong? Or missing?

0 Likes

cadffm
Consultant
Consultant

The folder is not reachable on tge other station or it is another folder (same path, but another drive/server)

.

Is this profile set to current?

 

Try this at the commandline

Command: (findfile "acaddoc.lsp")

is nil? Or if not, Is this the right file?

 

 

Sebastian

0 Likes