Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Pre/Post Processing with Publish

1 REPLY 1
Reply
Message 1 of 2
hanchris
188 Views, 1 Reply

Pre/Post Processing with Publish

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.
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: hanchris

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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost