Xanadu AutoPDF reactor - publish PDF file with every file save
--------------------------------------------------------------
(C)2009 XANADU a.s., www.xanadu.cz

Setup:
AutoPDF.VLX must be loaded into every AutoCAD document to auto-publish saved DWG to PDF.
You can load it automatically using ACAD.LSP/ACADDOC.LSP or with the _APPLOAD command.

Usage:
On every SAVE/QSAVE/END of your DWG drawing AutoPDF saves/publishes a copy of your drawing to
a PDF file. Old version of the PDF file is rewritten with the updated copy. You can setup
the target folder for your PDF file and optionally upload it to a FTP or iPROJECT server.

The AutoPDF command can be used to disable/re-enable the auto-publishing functionality (ON/OFF options).
The 'noQS' toggle sets whether the _QSAVE (Ctrl+S) command also publishes PDF or not.
The 'Folder' option sets the target folder/subfolder name (e.g.: C:\myPDFs, no trailing backslash).
The 'FolderType' suboption specifies how the 'Folder' name is used - the 'Absolute' setting just uses
the 'Folder' name as the target, the default 'Drawing' option saves the PDF copy with the DWG file,
'Current' saves the PDF in the AutoCAD current (Start-In) folder.
The 'Layout' option specifies which layout is published. The default 'Current' means the current layout
when the drawing was saved (= mostly Model), 'Model' means "always publish the Model tab". The 'Append'
suboption will append layout name to PDF filename. The 'Scale' suboption will leave the plot scale
to Default (instead of Fit to scale).
The 'Upload' option lets you automatically upload the published PDF to a FTP server
or your iPROJECT server (see www.iproject.cz).
The option 'Now' performs the PDF publishing on demand (not on save) - even when the reactor is switched
Off. You can e.g. call "AutoPDF Now" in your menu macros for final plotting.
The 'Status' option lists your current AutoPDF settings.

PDF contains the active space/layout.

All AutoPDF settings are saved between sessions - they are stored in the Windows Registry, under:
HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\Rxx.x\ACAD-xxx:xxx\Applications\AutoPDF

History:
V1.1 - adds the Layout-Append and Layout-Scale options
     - checks unsuccessfull PDF saves (e.g. file in use)
     - fixes bug in default answers for options (stringp nil error)

NB: this is a stripped-down version of the Xanadu AutoDWF application

NB2: the output goes by default through the "DWG To PDF.pc3" definition file; you can change it
(e.g. to "DWG To PDF Bonus Pack.pc3" or to your PDF driver) by setting the apdf:PC2name variable:
(setq apdf:PC3name "DWG To PDF Bonus Pack.pc3")

(see XANADU's web server for AutoPDF updates and www.xanadu.cz/en/develop.asp for other CAD utilities)

------------------------------
XANADU a.s.
www.xanadu.cz  www.cadforum.cz
info@xanadu.cz
