Overwrite PRINT
in LISP
Is it possible to overwrite the default _PRINT function (the one called by ctrl+P)? I would like to automatically check the drawing by my own LISP (for instance for layers that have been switched off accidentaly) before allowing the user to print it.
0
Comments
-
The Undefine and Redefine commands ( https://help.bricsys.com/document/_commandreference--CMD_redefine/V23/EN_US?id=165079097750 ) may be what you're looking for. I have very little experience with implementing them. In my experience it was more difficult to manage them verses teaching users to utilize the shortcut or command name for the customization. Once they realized the benefits they taught themselves.0
-
Thanks, I believe undefine and redefine could work, i looked it up as well. The link you posted is invalid though, could you repost it?
Thanks, Pavel0 -
https://help.bricsys.com/document/_commandreference--CMD_undefine/V23/EN_US
And this one for Undefine.0 -
It would be much easier make your own command as a lisp defun, c:myprint, then you can do anything you want and finally calling print. We had this on a custom menu or toolbar.0
-
You can easily change Ctrl-P to execute ^c^cMyPrint by assigning this in the CUI -> Keyboard menu... You could also undefine Print, then create a c:Print lisp defun that load on Dwg open. If you need to launch the native print function in your Lisp Routine use (command ".print" ) as this calls the native command.0