@pavel_hosek wrote:
.... the default _PRINT function (the one called by ctrl+P) ....
That's actually _PLOT [unless that's changed in a newer version than 2020 that I have here -- I can check in 2024 elsewhere later] -- PRINT is just an alias. If you want to UNDEFINE, it needs to be the actual command name [I get an unknown-command-name error message if I try to UNDEFINE PRINT or use it in an AutoLisp (command) function]. You can then define your own under the same name if you want [so it will be what is invoked by Ctrl+P], doing your own stuff before calling the real command using:
(command "_.plot" ...)
with the period prefix to force the use of the native command. If you've Undefined it, the (command) function won't recognize it without that.
Kent Cooper, AIA