Jeff
"Alan Henderson @ A'cad Solutions" <REMOV...@acadsolutions.biz> wrote in
message news:40c740e9$1_1@newsprd01...
Command: MTEXT
Current text style: DIMS. Text height: 4 1/2"
Specify first corner: *Cancel*
Command: UNDEFINE Command name: *Cancel*
Command: MTEXT
Current text style: DIMS. Text height: 4 1/2"
Specify first corner: *Cancel*
Command: UNDEFINE
Command name: MTEXT
Command: MTEXT
Unknown command "MTEXT". Press F1 for help.
___
Enter Insert key to select menu item.
"Jeff Mishler" <mi...@USESsonic.net> wrote in message
news:40c75f5d_1@newsprd01...
Command: MTEXT
Current text style: DIMS. Text height: 4 1/2"
Specify first corner: *Cancel*
Command: UNDEFINE
Command name: MTEXT
Command: MTEXT
Unknown command "MTEXT". Press F1 for help.
At any rate, the MTEXT command *can* be undefined.
Regenerating model.
Initializing....
.Done.
Initializing VBA System...
Loading VBA startup file...
AutoCAD Express Tools Copyright © 2000 Autodesk, Inc.
undefine Enter command name: plot
AutoCAD menu utilities loaded.
Command: undefine
Enter command name: mtext
Unknown command name.
Command:
OK Do something that uses the mtext editor....
Command: mtext ;;;;;;;;HERE IT TAKES A MOMENT TO LOAD
Current text style: "Standard" Text height: 0.2000
Specify first corner:
Specify opposite corner or [Height/Justify/Line
spacing/Rotation/Style/Width]:
Command: undefine
Enter command name: mtext
Command: mtext
Unknown command "MTEXT". Press F1 for help.
My point was, the arx is not loaded until the command is used. Once used the
command interpreter knows it is a command so THEN it can be
undefined....whew! Since the acad.lsp is loaded prior to a call to the mtext
command, trying to undefine it there fails.
Jeff
"Paul Turvill" <nos...@turvill.com> wrote in message
news:40c7ae38_3@newsprd01...
> Huh?
>
FYI, that is curious, that mtext is not a member of AutoCAD base commands.
Maybe it's not a "finished" command???
"Alan Henderson @ A'cad Solutions" <REMOV...@acadsolutions.biz> wrote in message news:40c7b5c0$1_3@newsprd01...
For externally defined commands, you don't have to UNDEFINE
them to replace them with LISP, if the command hasn't been
invoked yet.
The following is the general pattern for replacing either
a built-in or externally defined, demand-loaded command:
(if (getcname "MTEXT")
(command "._UNDEFINE" "MTEXT")
)
(defun C:MTEXT ()
(princ "\nHere is the replacement command for MTEXT")
(princ)
)
If you run the above at startup, you'll see that the
replacement command is used when you issue MTEXT at
the command line, even if the MTEXT command was not
undefined.
AutoCAD based Security Planning Solutions:
http://www.caddzone.com/securityplanning
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005
http://www.acadxtabs.com
"Paul Turvill" <nos...@turvill.com> wrote in message news:40c7ae38_3@newsprd01...