Visual LISP, AutoLISP and General Customization

Reply
Distinguished Contributor
hanchris
Posts: 308
Registered: ‎10-24-2007
Message 1 of 2 (70 Views)

Pre/Post Processing with Publish

70 Views, 1 Replies
03-27-2009 01:24 PM
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.
*Ken Krupa
Message 2 of 2 (70 Views)

Re: Pre/Post Processing with Publish

03-29-2009 06:04 PM in reply to: hanchris
Try this:

(command "undefine" "publish")
(defun c:smileytongue:ublish ()
(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.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community