Each layout has a Page setup assigned for every template. No need to modify or preview anything. Any way to plot or publish the current layout without a dialog box?
|
|
|
Each layout has a Page setup assigned for every template. No need to modify or preview anything. Any way to plot or publish the current layout without a dialog box?
the -PLOT should work. You may want to set PLQUIET to 1 and FILEDIA to 0
Faster still - use the Autopublish mechanism at drawing SAVE*
Cheers
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000
R.K. McSwain | CAD Panacea |
FWIW -
I just did a quick comparison, using your macro vs Autopublish... With the same named Page Setup (DWG To PDF) on a single Layout drawing (large, +2 MB), the macro took a whopping 63 seconds to produce the resultant PDF, whereas Autopublish took only 6 seconds for same, and my workstation isn't exactly lacking. Haha
Average small-medium size drawings, usually take 1-2 seconds to produce PDF via Autopublish on my workstation, and it's done when I hit SAVE*; when I need a subset of drawings to sendout, I just grab the PDFs I need, and done.
Cheers
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000
I tried that once... for about an hour... and nope....
I work on too many model drawings that don't need to be printed, especially every time I save, which is every couple of commands.
Maybe setting it for "close" instead of "save" wouldn't be so bad...?
If you had a team working on sheet files, I can see the benefit though.
R.K. McSwain | CAD Panacea |
No worries; I do not always leave Autopublish enabled either :
Code:(defun c:APP () (princ "\nAUTOMATICPUB: ") (setvar 'automaticpub (abs (1- (getvar 'automaticpub))) ) )
[Edit] - Just to clarify, I use DWG To PDF, but Autopublish works with any named Page Setup; so it works with hardcopy plot devices as well (when enabled).
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000
Just a quick update to the code I previously posted, as I'm now often pulled away for myriad things CAD/IT-related, and end up coming back to my desk to re-run the routine just to determine if enabled or not....
Code:(vl-load-com) (defun c:APP () (princ "\nAUTOMATICPUB: ") (setvar 'modemacro (if (= 1 (princ (setvar 'automaticpub (abs (1- (getvar 'automaticpub)))) ) ) (strcat "Autopublish: ON | " (getvar 'modemacro)) (vl-string-subst "" "Autopublish: ON | " (getvar 'modemacro) ) ) ) )
Last edited by BlackBox; 2015-09-15 at 01:57 PM.
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000