notredave Posted June 11, 2019 Share Posted June 11, 2019 Good morning all, If someone could look at this lisp that I tried to modify from this post: I get misplaced dot on input. Also, How can I get this Standard1 dimstyle to utilize the dimscale of current drawing? if someone can look at all of my variables and make sure I called them correctly. I used numbers for colors and decimals instead of fractions. Any help would be greatly appreciated. Thank you much, David ( (lambda ( / _dimstyle-setup ) (defun _dimstyle-setup ( / ) (mapcar 'eval '( (SETVAR "DIMADEC" 0) (SETVAR "DIMALT" 0) (SETVAR "DIMALTD" 2) (SETVAR "DIMASZ" 0.1875) (SETVAR "DIMALTF" 25.4) (SETVAR "DIMALTRND" 0.0) (SETVAR "DIMALTTD" 2) (SETVAR "DIMCLRD" 1) (SETVAR "DIMTXSTY" ROMANS) (SETVAR "DIMGAP" 0.09375) (SETVAR "DIMELTEX1" BYBLOCK) (SETVAR "DIMLWD" BYLAYER) (SETVAR "DIMEXE" .06250) (SETVAR "DMLUNIT" ARCHITECTURAL) (SETVAR "DIMCLRT" 2) (SETVAR "DIMTXSTY" ROMANS) (SETVAR "DIMDEC" .06250) (SETVAR "DIMJUST" CENTERED) (SETVAR "DIMTAD" ABOVE) (SETVAR "DIMTOH" ON) ; ; ...<snip> All your variables. ; (SETVAR "DIMTXT" 0.09375) (SETVAR "DIMTZIN" 0) (SETVAR "DIMUPT" 0) (SETVAR "DIMZIN") ) ) ) (if (tblsearch "DIMSTYLE" "<STANDARD1>") (progn ;; if the dimstyle exists ;; make sure its setup properly (_dimstyle-setup) ;; set it current (command "-dimstyle" "r" "<STANDARD1>") ) (progn ;; otherwise ;; set it up properly (_dimstyle-setup) ;; save it. (command "-dimstyle" "s" "<STANDARD1>") ) ) ) ) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.