Jump to content

Write your name on the status bar of AutoCAD


India

Recommended Posts

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?

Link to comment
Share on other sites

  • Replies 48
  • Created
  • Last Reply

Top Posters In This Topic

  • mdbdesign

    7

  • ReMark

    6

  • alanjt

    4

  • India

    2

Top Posters In This Topic

Posted Images

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 by SLW210
Link to comment
Share on other sites

  • 9 months later...
  • 3 months later...
  • 3 months later...

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.

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...
  • 3 weeks later...

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 by SLW210
Link to comment
Share on other sites

  • 1 month later...
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 ....

:D

Edited by SLW210
Link to comment
Share on other sites

  • 3 years later...

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. :lol:

Link to comment
Share on other sites

  • 3 weeks later...

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.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...