You are here:

AutoCAD/DIMBREAK Default change

Advertisement


Question
I work for an international corporation Tenaris.  And we work off Citrix.  I use AutoCAD 2008 and mainly 2D.  My question is how can I change the DIMBREAK default from "auto" to "manual".  It get unbearable hitting "M" all the time.  The auto default does not break when crossing arrows.

Thanks, Michael

Answer
You can't make the core command do anything but default to Auto, unfortunately, but you can use LISP to create commands that will do you want.  Load these three routines in your acad2008doc.lsp file.

(defun c:dbr (/ p1)
  (prompt "\nSelect dimension object:  ")
  (setq p1 (grread nil 4 2))
  (command "_.dimbreak" (cadr p1) "r")
  (while (> (getvar "cmdactive") 0) (command pause))
  (princ)
)
(defun c:dba (/ p1)
  (prompt "\nSelect dimension object:  ")
  (setq p1 (grread nil 4 2))
  (command "_.dimbreak" (cadr p1) "a")
  (while (> (getvar "cmdactive") 0) (command pause))
  (princ)
)
(defun c:dbm (/ p1)
  (prompt "\nSelect dimension object:  ")
  (setq p1 (grread nil 4 2))
  (command "_.dimbreak" (cadr p1) "m")
  (while (> (getvar "cmdactive") 0) (command pause))
  (princ)
)
You'll need to reopen your AutoCAD drawing for this to take affect after you add it to ACAD2008doc.lsp.
Type dbr for "restore", dba for "auto", or dbm for Manual.  does not have a "multiple" mode.
You can also load these by saving each of them in their own lisp file.  For example c:dba can be loaded in a text file that you create and name DBA.LSP.
If this is too confusion for you, let me know by using the follow-up option

Keep in touch
Bill DeShawn
http://my.sterling.net/~bdeshawn

AutoCAD

All Answers


Answers by Expert:


Ask Experts

Volunteer


Bill DeShawn

Expertise

I can address all 2-D questions and some 3-D questions. I do programming in AutoLISP if it doesn`t involve solid modeling. I can also address menu customization issues and can help you find answers to questions I can`t answer by taking your question directly to Autodesk via their newsgroups.

Experience

I used to do electronic and mechanical design for a flat panel monitor manufacturer, and now I do architectural drafting for an architect. I did and do AutoLISP and menu customization and take pride in making my lisp routines to do the work exactly the way the client likes them done.

Publications
I had a routine published in CADENCE magazine (no longer in publication and taken over by CADALYST). Some of my routines are published on my website at http://my.sterling.net/~bdeshawn

©2012 About.com, a part of The New York Times Company. All rights reserved.