You are here:

AutoCAD/shortcut keystrokes for Acad LT

Advertisement


Question
Bill,

Currently I am using Acad Lt 97 and 2000i LT.  In regular Acad I could customize the acad.lsp file so that I could invoke such processes as zoom extents or circle diameter with only a ZE or CD, amongst many other commands, which were what I would refer to as double commands.  Example

(defun C:OZ ()
  (command "OSNAP" "MID,CEN,END,INT")  

Is there a way to do this in LT.  I have changed the .pgp file as much as I can for other commands which are not "double commands".  I would appreciate very much your help.

Thanks......Duffy Sadorus

Answer
For LT, you need to write a macro in ACAD.MNS.  If it doesn't exist, write it in ACAD.MNU.  Otherwise leave ACAD.MNU completely alone.  If you mess up with ACAD.MNS, you can always bring the menu back to its original state by loading ACAD.MNU.  When you load either ACAD.MNS or ACAD.MNU with the MENU command, it recompiles ACAD.MNC which is the menu that you see on screen.

The MACRO that you would require to equal the code you wrote would be this:

[OZ]'setvar;osmode;39;

The value in the parentheses is what you will display in your menu so you can see what to pick.  The rest is the macro.  If you want to do other macros that change the osmode system variable, change them manually first in AutoCAD and then check to see what the system variable is, then apply it to a new macro.  If you want a help string to display at the bottom of the screen, I can help you with that later.

Keep in touch
Bill DeShawn
http://my.sterling.net/~bdeshawn

AutoCAD

All Answers


Answers by Expert:


Ask Experts

Volunteer


Bill DeShawn

Expertise

I can address all 2-D questions and some 3-D questions. I do programming in AutoLISP if it doesn`t involve solid modeling. I can also address menu customization issues and can help you find answers to questions I can`t answer by taking your question directly to Autodesk via their newsgroups.

Experience

I used to do electronic and mechanical design for a flat panel monitor manufacturer, and now I do architectural drafting for an architect. I did and do AutoLISP and menu customization and take pride in making my lisp routines to do the work exactly the way the client likes them done.

Publications
I had a routine published in CADENCE magazine (no longer in publication and taken over by CADALYST). Some of my routines are published on my website at http://my.sterling.net/~bdeshawn

©2012 About.com, a part of The New York Times Company. All rights reserved.