India Posted August 18, 2006 Share Posted August 18, 2006 Just seeing the Oops! Command response, I thought I may post this funny thing. Command: setvar This is the single command that power AutoCAD. It has many subcommand, infact switches that set or unset many parameters in AutoCAD. Justfor example type "clayer" and you get the current layer name as a string output. Very useful for AutoLISP programmers. So ever thought of attaching your name to the lower left corner of AutoCAD Window? Try this modemacro "Your Name" Bingo! This can be used to display the counter when processing a lot of entities in LISP. What say? Quote Link to comment Share on other sites More sharing options...
craigp Posted August 18, 2006 Share Posted August 18, 2006 My name is inside CAD Quote Link to comment Share on other sites More sharing options...
fahim108 Posted August 18, 2006 Share Posted August 18, 2006 that's awsome!! ...i liked the modemacro command! Quote Link to comment Share on other sites More sharing options...
gw4100 Posted August 18, 2006 Share Posted August 18, 2006 how do we save it so its always in there, after restarting cad it disappeared. Quote Link to comment Share on other sites More sharing options...
India Posted August 18, 2006 Author Share Posted August 18, 2006 (edited) It is a temporary arrangement. If you want it to stay there, edit the Acad.lsp in support directory and add the following lines; (setvar "modemacro" "yourname") every time this file loads, it will set it. Edited December 21, 2011 by SLW210 Quote Link to comment Share on other sites More sharing options...
JBullseye74 Posted August 18, 2006 Share Posted August 18, 2006 Skillz i like that one Quote Link to comment Share on other sites More sharing options...
steel_dragon Posted June 5, 2007 Share Posted June 5, 2007 this is cool... Quote Link to comment Share on other sites More sharing options...
spiderdian Posted September 17, 2007 Share Posted September 17, 2007 awesome!! this is so cool! thanks india!! Quote Link to comment Share on other sites More sharing options...
jedax81 Posted January 8, 2008 Share Posted January 8, 2008 where can I find that Acad.Isp? Quote Link to comment Share on other sites More sharing options...
GhostRider Posted January 8, 2008 Share Posted January 8, 2008 It's actually ACAD.LSP, if you don't have one you can create the file with notepad, for customizations and save it in a file that is in your search path. Quote Link to comment Share on other sites More sharing options...
nif Posted January 21, 2008 Share Posted January 21, 2008 Thanks. Its a good post. If you have more then please post that very soon. Quote Link to comment Share on other sites More sharing options...
azzro10 Posted February 13, 2008 Share Posted February 13, 2008 Thats cool wish i had have found this ages ago, Thanx Quote Link to comment Share on other sites More sharing options...
sanlintun Posted March 2, 2008 Share Posted March 2, 2008 (edited) Here is code for you. Replace "YourName" with "Your Desire Name" in code. Save these codes as *acad.lsp* file in the AutoCAD support file search path directory. Every time you start AutoCAD You will see your name, current dimension scale, current fillet radius, and current text size. ******************************************************* ;This program state user name, dimension scale, current text size, current fillet radius and current command in status line. (defun-q S::STARTUP () (command "modemacro" "Mr YourName: DSc=$(getvar,dimscale)...TSz=$(getvar,textsize)...FRad=$(getvar,filletrad)...*$(getvar,cmdnames)*" ; (alert ; "ATTENTION!\n\nDSc\t= dimension scale\nTSz\t= text size\nFRad\t= fillet radius\n\nTHANK YOU." ; ) ) ) ************************************************************ Edited December 21, 2011 by SLW210 Quote Link to comment Share on other sites More sharing options...
chan09 Posted April 10, 2008 Share Posted April 10, 2008 (edited) Here is code for you.Replace "YourName" with "Your Desire Name" in code. Save these codes as *acad.lsp* file in the AutoCAD support file search path directory. Every time you start AutoCAD You will see your name, current dimension scale, current fillet radius, and current text size. ******************************************************* ;This program state user name, dimension scale, current text size, current fillet radius and current command in status line. (defun-q S::STARTUP () (command "modemacro" "Mr YourName: DSc=$(getvar,dimscale)...TSz=$(getvar,textsize)...FRad=$(getvar,filletrad)...*$(getvar,cmdnames)*" ; (alert ; "ATTENTION!\n\nDSc\t= dimension scale\nTSz\t= text size\nFRad\t= fillet radius\n\nTHANK YOU." ; ) ) ) ************************************************************ Thank you for your code.. now my acad status bar have my word .... Edited December 21, 2011 by SLW210 Quote Link to comment Share on other sites More sharing options...
S-8-N Posted December 21, 2011 Share Posted December 21, 2011 So I took this one step more and made an ACAD.lsp file (I think that is the right file) on our server, then directed my co-workers autocad to look at it. I left it blank at first so he wasn't noticing it right away after seeing me on his computer. Then at will I can (could he found it) change his text when ever I felt like it. Quote Link to comment Share on other sites More sharing options...
designerstuart Posted December 21, 2011 Share Posted December 21, 2011 similar to MTJIGSTRING Quote Link to comment Share on other sites More sharing options...
AsyJ Posted January 8, 2012 Share Posted January 8, 2012 Not bad. Quote Link to comment Share on other sites More sharing options...
Murph_map Posted January 13, 2012 Share Posted January 13, 2012 As a cad manager what I used was (command "modemacro" (getvar "loginname")) , this lets me see if what account the cad monkey used to log on with. If only certain users were allowed acess to certain files, folders etc. it was helpful. Quote Link to comment Share on other sites More sharing options...
mostafa badran Posted January 13, 2012 Share Posted January 13, 2012 i want my name start up in dwg individual in massage box every time i open the dwg Quote Link to comment Share on other sites More sharing options...
fuccaro Posted January 13, 2012 Share Posted January 13, 2012 Edit the file Acad.lsp by adding this: (alert "Mostafa Badran") 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.