Our Friends: Leaflet Printing , Presented by: Talia Cad Software

Sign In

Subscribe

Subscribe to Daily Autocad.


Jan 29
Monday
AutoLISP, Autocad, Hints & Tips, Programming
Characters 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:14

Post Tags:

2 Responses to “ Characters entered in front of AutoCAD commands ”
  1. doanminhchau
    doanminhchau

    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.

  2. doanminhchau
    doanminhchau

    Apr 6, 2009
    Reply

    please send me a message if you can, i’m so confused about this problem, thanks


Post a Comment



All content and source © 2008 Daily Autocad | News Plus wordpress theme brought to you by Zidalgo.