Try this:
(command "undefine" "publish")
(defun c:publish ()
(alert "Before Publish")
(command "redefine" "publish")
(command "publish")
(command "undefine" "publish")
(alert "After Publish")
(princ)
)
Ken Krupa
Autodesk Authorized Developer
Krupa CADD Solutions
www.krupacadd.com
hanchris wrote:
> Is there a way I can run a piece of code to each drawing before the
> drawing prints, through Publish? I have AutoCAD 2009. Thanks.