• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD LT

    Reply
    Member
    Posts: 5
    Registered: ‎03-21-2010

    Re: Replacing LISP with Macros for AutoCAD LT

    01-10-2013 07:02 PM in reply to: Charles_Shade

    Thanks all for the help.

    I have all my layer management LISP routines converted over to LT.  Now on to the others!

    Please use plain text.
    Mentor
    Posts: 230
    Registered: ‎02-04-2009

    Re: Replacing LISP with Macros for AutoCAD LT

    01-10-2013 08:05 PM in reply to: bgingerich

    I also had to give you two kudos for those two post. Great solution and follow up explanation.

    Please use plain text.
    Mentor
    bgingerich
    Posts: 250
    Registered: ‎08-29-2011

    Re: Replacing LISP with Macros for AutoCAD LT

    01-11-2013 09:04 AM in reply to: DesCap

    This one is even better, a true toggle.  The only thing is that you have to make sure the var "layon-off" (or whatever you're using)  is created/existing with a value of 1 (specifies that said layers are on) before running it. 

    ^C^C$M=$(if,$(=,$(getenv,layon-off),0),setenv;layon-off;1;_-Layer;ON;m*;;,setenv;layon-off;0;_-Layer;OFF;m*;;)^Z

     HTH!

     

    (if ("mysolution"=answer) then (click "Accept As Solution"))
    ------------------------------------------------------------------------------------

    ──────────────────────────────────────────────────────────────────────────────────────────────
    Brandon Gingerich
    Please use plain text.
    *Expert Elite*
    pendean
    Posts: 14,969
    Registered: ‎11-06-2003

    Re: Replacing LISP with Macros for AutoCAD LT

    01-11-2013 09:47 AM in reply to: bgingerich

    There are many on-off needs for AutoCAD users, these tips can be modified with a little imagination to do so much in LT.

    I'm sure we all have our favorites, think about it during a typical day of CAD and the flood gates will open.

     

    Remember though, SETENV accesses the Windows Registry to add these user "environment variables": some registry cleaners like to remove them. AFAIK limited Windows user accounts are not affected in creating them, but I've never tested it.


    Dean Saadallah Blog | Facebook | RSS | Twitter | PINS
    Please use plain text.