Monday
AutoLISP, Autocad, Hints & Tips, ProgrammingCharacters entered in front of AutoCAD commands
Hello Dailyautocad readers,
You may have noticed that when we are explaining AutoCAD commands, sometimes we put “_” or “.” in front of them. I though that you might want to learn the meaning of these characters, so let me start explaining.
Some AutoCAD applications may re-define AutoCAD commands. They do this to create a more advanced version of that command. In AutoLISP, this is done by UNDEFINE command. For example:
(command "UNDEFINE" "LINE")
(defun c:line()
...
...
)
In this code, by writing the necessary codes in place of “…” s, you can re-define a LINE command. By this way, when you execute LINE command, LINE command that is defined by the user is executed instead of AutoCAD’s original LINE command. If we would like to execute the original LINE command in such a case, then it is enough to place a “.” in front of LINE command.
Command: (command “undefine” “line”)
undefine Enter command name: line
Command: nil
Command: l
Unknown command “LINE”. Press F1 for help.
Command: .line
Specify first point:
Specify next point or [Undo]:
Specify next point or [Undo]:
Command:(Command “redefine” “line”)
You can try the above given example by yourself either. Moreover, we also put “_” in front of AutoCAD commands. The meaning of this is for entering English commands whatever language it is at. Let me explain this with an example:
Befehl: _LINE
In german version of AutoCAD, line command is entered by this way.
Another character that we can use in front of any AutoCAD command is “-“. When you use the “-“ character in front of AutoCAD command, the dialogue box of related command don’t appear. You can continue the execution of command with the help of directives in command line area.
I hope that this information is useful for you. Have a nice day…
Bu yazinin Turkce’sini okumak icin basiniz.
Viewed 6,406 times so far... This week: 52 Today: 10 Latest: 4 July 2009, 20:14Post Tags:
Related Posts
Popular
- Hip tip: Increasing view resolution with VIEWRES system variable
07/03/2009 04:39 am
7 Comments - Sirince – IZMIR
07/02/2009 11:02 am
1 Comment - Visual LISP: Programming user interfaces with OpenDCL
07/01/2009 10:15 pm
10 Comments - 3D Modeling 7: EXTRUDE
06/30/2009 02:14 pm
10 Comments - Ask DailyAutoCAD: Which Notebook to Buy?
06/30/2009 12:17 pm
1 Comment
Featured Articles
- AutoCAD 2009 Update 3 Released
- Speed Up As AutoCAD 2009 Ribbon Menu Helps You!
- MEP Analysis Extension for AutoCAD MEP extended to March 31, 2009
- Recap of AutoCAD-related technologies on Autodesk Labs
- Technology Preview of MEP Analysis Extension extended to 12/31/08
- Autodesk Labs: Forward and Backward utility for AutoCAD
|

Apr 6, 2009
Reply
sorry, i read your explanation, but i confused how to recover all the command, i hate to place ‘.’ before a usual command, could you help me to solve this complicated problem, thanks for your help first.
Apr 6, 2009
Reply
please send me a message if you can, i’m so confused about this problem, thanks