I like to use several key-ins for my own commands in civil3d 2015.
I do that with lisp, so something like:
(DEFUN C:BB () (PRINC "\nBreak object and erase selected")(COMMAND "BREAK" PAUSE "F" PAUSE "@" "ERASE") (PRINC))
but since civil3d has BB as a transparent command, I typically must undefined it first with:
(COMMAND "UNDEFINE" "BB")
now I am getting an error on the undefine:
Command: (COMMAND "UNDEFINE" "BB")
Unknown command name.nil
then when I run the defun:
(DEFUN C:BB () (PRINC "\nBreak object and erase selected")(COMMAND "BREAK" PAUSE "F" PAUSE "@" "ERASE") (PRINC)), I get:
; User warning: assignment to protected symbol: c:bb <- #<SUBR @000000002f8da110 c:bb>
c:bb
How is it that it says command BB is unknown, then it says its a protected symbol?
This only happens in civil3d of course, vanilla acad does not have those transparent commands.
thx
internal protected virtual unsafe Human() : mostlyHarmless
I'm just here for the Shelties
Command: (defun c:bb() (command "regenall")(princ))
c:bb
Command: BB
regenall Regenerating model.
I only get the warning when the VLIDE is open and the option to display the message is selected. The new bb command does work as expected, however, in either case.
yah, I guess I was opening the vlide in order to copy the code and paste.
I was just wondering why the other items I undefine, like AD, do not give the "unknown command name" error.
This all came about as users were wondering why they see "unknown command name" appear in the command line on startup.
That happens no matter what, the vlide is not involved.
thanks Jeff!
internal protected virtual unsafe Human() : mostlyHarmless
I'm just here for the Shelties