VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Auto pdf create

4 REPLIES 4
Reply
Message 1 of 5
IAND
197 Views, 4 Replies

Auto pdf create

Hi I am new to vb and his may not be the place to ask but...

I want to write a stand alone program in vb to watch a directory and create a pdf of dwg files as and when they appear or to run once a day [I also need to add a watermark at the same time].
Due to limited licenses I don't want to have AutoCAD running permanently.

Has anybody done anything similar before? Any advice and or code samples would be gratefully received.


Many thanks Ian
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: IAND

If you have Adobe Pro, I don't think you need to write anything. Distiller
does that already, or at least can be set up to do so.

--
----
Ed
----
wrote in message news:4893937@discussion.autodesk.com...
Hi I am new to vb and his may not be the place to ask but...

I want to write a stand alone program in vb to watch a directory and create
a pdf of dwg files as and when they appear or to run once a day [I also need
to add a watermark at the same time].
Due to limited licenses I don't want to have AutoCAD running permanently.

Has anybody done anything similar before? Any advice and or code samples
would be gratefully received.


Many thanks Ian
Message 3 of 5
IAND
in reply to: IAND

I do have adobe pro but from the help file I understood that the watch folders only deal with postscript files. If this isn't the case where can I find info please.
Message 4 of 5
Anonymous
in reply to: IAND

> wrote in message news:4894669@discussion.autodesk.com...
>I do have adobe pro but from the help file I understood that the watch
>folders only deal with postscript files. If this isn't the case where can I
>find info please.

I believe you are right. You would have to plot each drawing to a postscript
file. Distiller could watch the folder and with the watermark defined in its
job options file apply it when making the PDF. The job options files for
Acrobat 5.05 on my PC are kept in C:\Program Files\Adobe\Acrobat
5.0\Distillr\Settings\Press.joboptions. I believe it could be done by
inserting some of the stuff below which I use to add a "preliminary" stamp
rotated about 20 degrees.

<< /BeginPage
{ pop save 300 150 moveto 20 rotate .8 setgray
/ArialMT 120 selectfont (PRELIMINARY) show restore }
>> setpagedevice
/pdfmark {pop}
/prun { /mysave save def
dup = flush
RunFile
clear cleardictstack
mysave restore
} def
Message 5 of 5
Anonymous
in reply to: IAND

I've got an excel macro attached that does something similar, it doesn't
automate the pdf printing but simply monitors dwg file date/times compared
to same-named pdf files. Any pdf file that is older than the dwg by more
than 10 minutes or so gets listed for an operator to generate the pdf. If
you take it any further please let me know I'd love to automate more of the
process myself at some point.

hth,
Kevin


wrote in message news:4893937@discussion.autodesk.com...
Hi I am new to vb and his may not be the place to ask but...

I want to write a stand alone program in vb to watch a directory and create
a pdf of dwg files as and when they appear or to run once a day [I also need
to add a watermark at the same time].
Due to limited licenses I don't want to have AutoCAD running permanently.

Has anybody done anything similar before? Any advice and or code samples
would be gratefully received.


Many thanks Ian

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

Post to forums  

Autodesk Design & Make Report

”Boost