View Full Version : Batch Plotting - old topic, new question ( I hope?)
Envirex
23-03-2005, 05:32 PM
Currently using ACAD-E 2005. The publish functionality in ACAD does not work in Electrical due to "multiple sessions" not allowed. Have a script written that allows me to plot the page I am directly working on at the touch of a button, one button for each of the different plotters I plot to. I'd like to add to this script so as to plot all the drawings in a folder, in order, by incrementing the last digit(s) in the file name. Attached is the file. Any feedback would be helpful.
architech
23-03-2005, 06:27 PM
See these posts ....
http://www.autocadeverything.com/phpBB/ftopic391.php
http://www.autocadeverything.com/phpBB/ftopic389.php
Hope that helps....
http://www.crazymaze.de/smili/party.gif
Envirex
23-03-2005, 09:36 PM
Both of these require Scriptpro, which does not appear to load/work on my 2005 Electrical setup. Is there a scripting command that would allow me to open drawings on an incremental basis, provided I supply the first drawing name (number)?
architech
23-03-2005, 11:27 PM
:oops:
I made a new thread for ya' ...
see this one ...
http://www.autocadeverything.com/phpBB/ftopic951.php
Hope that helps .... :shock:
:P
Envirex
24-03-2005, 01:52 PM
Have 2 issues that I see here: Error loading the scriptpro.lsp routine, and fatal exception errot on quit.scr. The error loading the .lsp routine is minor I would guess, as the project runs anyhow. The fatal exception causes AutoCAD to crash and wait for user input to send a file to microshaft or not....
Below is part of the log file , any help is appreciated.
[ Status summary ]-------------------------------------------------------------
done
[ AutoCAD - Thu Mar 24 07:42:48 2005 ]----------------------------------------
Opening an AutoCAD 2000 format file.
Regenerating layout.
Regenerating model.
Loading Electrical modules.....
Loader application completed
Command:
AutoCAD Express Tools Copyright © 2002-2004 Autodesk, Inc.
AutoCAD menu utilities
loaded.
Command: (load "scriptpro.lsp")
; error: LOAD failed: "scriptpro.lsp"
Command: (acet-script-run "C:/PROGRAM FILES/AUTODESK/MIGRATION TOOLS/B-SIZE.SCR" T)
Pre-processing script...Initializing VBA System...Done_.script
Enter script file name <I:\ACAD Drawings\Contracts\41xxx\41064\0100\41064-891-02.scr>: C:\DOCUME~1\JASON~1.KAT\LOCALS~1\TEMP\SCRIPTPRO217 2.SCR
Command:
Command: -plot
Detailed plot configuration? [Yes/No] <No>: yes
Enter a layout name or [?] <D-size>: model
Regenerating model - caching viewports.
Enter an output device name or [?] <C:\PROGRAM FILES\AUTOCAD R14\plotters\7585B.pc3>: AUTOCAD4.pc3
Enter paper size or [?] <11x17>: 11x17
Enter paper units [Inches/Millimeters] <Inches>: inches
Enter drawing orientation [Portrait/Landscape] <Portrait>: landscape
Plot upside down? [Yes/No] <No>: no
Enter plot area [Display/Extents/Limits/View/Window] <Display>: limits
Enter plot scale (Plotted Inches=Drawing Units) or [Fit] <Fit>: fit
Enter plot offset (x,y) or [Center] <0.00,0.00>: 0,0
Plot with plot styles? [Yes/No] <Yes>: yes
Enter plot style table name or [?] (enter . for none) <Default R14 pen assignments.ctb>: Electrical B-Size.ctb
Plot with lineweights? [Yes/No] <Yes>: yes
Enter shade plot setting [As displayed/Wireframe/Hidden/Rendered] <As displayed>: as
Write the plot to a file [Yes/No] <N>: no
Save changes to page setup [Yes/No]? <N> yes
Proceed with plot [Yes/No] <Y>: yes
Effective plotting area: 10.67 wide by 16.48 high
Plotting viewport 2.
Restoring cached viewports - Regenerating layout.
Regenerating 1 modified entities.
Command: scr-quit
_.quit
Command: _.quit Really want to discard all changes to drawing? <N> _y
Command: ; error: Exception occurred: 0xC0000096
architech
25-03-2005, 01:01 AM
.. I'm guessing now ....
http://www.crazymaze.de/smili/nixwissen.gif
But it might be the timeout feature is too quick :?:
When you launch "Script PRO" go to "options"> "project settings" ...
I believe it defaults to 45 secs ... set it to 100 secs ... see if that clears up the error message.
I believe the 45 secs ... isn't enough time for AutoCAD to open and then regen your DWG ... and then run the script of commands ...
Hope that helps.
:mrgreen:
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.