Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Autolisp command to open & close property box

Status
Not open for further replies.

crashnb444

Technical User
Jan 14, 2003
37
0
0
US
I have a button for this, but I want to just type ee to open & to close my property box. Here what I am trying to do. Any help on this?


This is my properties1.lsp file.

(defun c:ee ()
^C^C^P(if (and (getvar "opmstate") 1) (command "_propertiesclose") (command "_properties"))


I will autoload this in my acaddoc.lsp file also.


Thanks.
 
Hi crashnb444,

How about:

Code:
(defun c:ee ()
  (if (and (getvar "opmstate") 1) (command "_propertiesclose") (command "_properties"))
)

HTH
Todd
 
Replace the "and" with "=" and you'll have it.
 
Thanks to both of you guys. I was missing a ")" & the "and" was in place of =.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top