Hello
I having difficulty batch printing using Scriptpro 2.0. In short, scriptpro is using the simple batch file (see below), to add a xref and then printing using the DWG to PDF driver. I have tried using a paper printer, which works fine, so I suspect the problem is when scrippro calls the DWG to PDF driver.
I am using accoreconsole.exe application.
I inserted a "qsave" command after the xref is inserted, and the xref does get saved, so, I know the script is working up to that point.
As anyone seen this problem and does anyone have any possible solutions.
Thanks in advance.
L.
Batch.scr
Filedia
0
Proxynotice
0
Frame
1
Frame
0
Wipeoutframe
1
-xref
attach
"G:\My Docs\Engineering\Stamp.dwg"
6.35,6.35
1
1
0
-Plot
Y
Model
DWG To PDF.pc3
ARCH expand D (36.00 x 24.00 Inches)
Inches
Portrait
No
Extents
Fit
Center
Yes
electrical.ctb
Yes
Wireframe
C:\TEMP\dwgtest\pdfs\<acet:cBaseName>
N
Y
Filedia
1
I can run the script with no issues when ran directly in AutoCAD. Even for 70+ dwgs.
But I have a lot of files that require the xref, so my throughts were to use Scrippro to handle the files and names, and allow it to simply reuse the same script.
Accoreconsole sets up the printing parameters fine, the command to sends the data to the DWG to PDF driver, which seems to fail. No error indication is issued, so debugging is difficult, at best. Also, no event errors are logged in the operating event file either.
Have you tried accoreconsole.exe with scriptpro to replicate the issue, or does it work for you?
I will try the AutoScript to see if it works.
yes it works if I write a extremly large single script and running it in AutoCAD, but that does not that is not the intent of looking for assistance in finding why accoreconsole.exe does not properly handle printing to PDF drivers properly.
If I choose a paper printer, the print command works fine. the issue is when printing to a PDF.
The hope was that scriptpro and accoreconsole would alieviate the amount of effort to perform this very repetitive task.
Hi ,
Try giving the extension as pdf. like C:\TEMP\<acet:cBaseName>.pdf.
I tried, below script file and it works fine in AutoCAD 2014. please note, i have made few changes to your to suite
environment at my end
Filedia
0
Proxynotice
0
Frame
1
Frame
0
Wipeoutframe
1
-xref
attach
"C:\cases\AutoCAD 2014.dwg"
6.35,6.35
1
1
0
-Plot
Y
Model
DWG To PDF.pc3
ARCH expand D (36.00 x 24.00 Inches)
Inches
Portrait
No
Extents
Fit
Center
Yes
Grayscale.ctb
Yes
Wireframe
C:\TEMP\<acet:cBaseName>.pdf
N
Y
Filedia
1
Virupaksha
I checked my script adding the ".pdf" did not help.
Currently, I am running AutoCAD 2013 LT, I am having scriptpro installed on another machine that is running autocad 2013 electrical to see if that will make a difference.
From what I have seen so far, it seems that the script pro issues the commands to ACCoreConsole.exe properly, but the call to the DWG to PDF.pc3 driver does not contiue after told to do so.
I have attached the ACCoreConsole log file.
As you can see, it appears everything went fine.
AutoCAD Core Engine Console - Copyright Autodesk, Inc 2009-2011.
Command:
Command:
Command:
Command: Filedia
Enter new value for FILEDIA <0>: 0
Command: Proxynotice
Enter new value for PROXYNOTICE <0>: 0
Command: Frame
Enter new value for FRAME <3>: 1
Runtime Extension 'AcIsmUi.crx' is already loaded.Regenerating model.
Command: Frame
Enter new value for FRAME <1>: 0
Regenerating model.
Command: Wipeoutframe
Enter new value for WIPEOUTFRAME <0>: 1
Regenerating model.
Command: -xref
Enter an option [?/Bind/Detach/Path/Unload/Reload/Overlay/Attach] <Attach>: attach
Enter name of file to attach: "C:\TEMP\dwgtest\Dwgs\Drawing1.dwg"
Attach Xref "Drawing1": C:\TEMP\dwgtest\Dwgs\Drawing1.dwg
"Drawing1" loaded.
Specify insertion point or [Scale/X/Y/Z/Rotate/PScale/PX/PY/PZ/PRotate]: 6.35,6.35
Enter X scale factor, specify opposite corner, or [Corner/XYZ] <1>: 1
Enter Y scale factor <use X scale factor>: 1
Specify rotation angle <0>: 0
Command: -Plot
Detailed plot configuration? [Yes/No] <No>: Y
Enter a layout name or [?] <Model>: Model
Enter an output device name or [?] <None>: DWG To PDF.pc3
Enter paper size or [?] <ANSI expand D (22.00 x 34.00 Inches)>: ARCH expand D (36.00 x 24.00 Inches)
Enter paper units [Inches/Millimeters] <Millimeters>: Inches
Enter drawing orientation [Portrait/Landscape] <Landscape>: Portrait
Plot upside down? [Yes/No] <No>: No
Enter plot area [Display/Extents/Limits/View/Window] <Display>: Extents
Enter plot scale (Plotted Inches=Drawing Units) or [Fit] <Fit>: Fit
Enter plot offset (x,y) or [Center] <-0.54,0.45>: Center
Plot with plot styles? [Yes/No] <Yes>: Yes
Enter plot style table name or [?] (enter . for none) <>: ONELINEelectrical.ctb
Plot with lineweights? [Yes/No] <Yes>: Yes
Enter shade plot setting [As displayed/legacy Wireframe/legacy Hidden] <As displayed>: Wireframe
Enter file name <C:\TEMP\dwgtest\Dwgs\Drawing2-Model.pdf>: C:\TEMP\dwgtest\pdfs\test.pdf
Save changes to page setup [Yes/No]? <N> N
Proceed with plot [Yes/No] <Y>: Y
Command: Filedia
Enter new value for FILEDIA <0>: 1
Command: Command: _quit
Hi,
First, ScriptPro can not be used against AutoCAD LT.
but the call to the DWG to PDF.pc3 driver does not contiue after told to do so.
sorry, not clear to me. what is happening? you need to press enter at the end to complete the script?
I am not using ScriptPro with AutoCad Lt, I am using ScriptPro with ACoreConsole. ACoreConsole follows the script and calls the -plot command, scriptpro responds to accoreconsole with all the necessary responses, even up to the request to proceed with the plot, but the DWG to PDF driver produces no pdf file.
It seems that the call to the DWG to PDF.pc3 driver does not take place.
I need to manipulate the drawings before printing.
There is a xref that is added in the title block and some parameters changed. The insertion of the xref is the task that has to be completed before printing/plotting. this is what I was using ACORConsole to complete. writing a long script to print 100+ drawings in time consuming. If the xref was not required to be inserted, the publish function would have been used.
I am open to suggestions if there is another method to manipulate drawings, then plot.
After some testing the version of ACCoreConsole supplied with Lt does not execute the DWG to PDF.pc3 driver properly, though it handles the -XREF and other commands properly.
I have tried AutoCAD 2013 Elec on another machine, and the ACoreConsole works and creates PDFs properly.
The question is: why does ACCoreConsole version in 2013 Lt not handle the DWG to PDF.pc3 properly? It will send plots to paper printers with no issues.
pendean,
If you have nothing useful to add to the discussion, then stop commenting. Read the discussion, and understand that ScriptPro is not being used with LT, just ACCoreConsole.
Hi,
accoreconsole app which comes with LT will have limitations. so, i suggest you should use Scriptpro against full AutoCAD or accoreconsole which comes with full AutoCAD.
ACCoreConsole calls the plot function without issues. It will even plot properly to to a printer, it is just the call to DWG to PDF driver that does not produce any output (pdf of drawing). Also, there is no error reported either.
Dean,
You don't seem to understand the purpose of these types of forums. They are meant to share info and expertise, not, as you have been doing, provide negative comments. I have shared what is happening with ACCoreConcole, and have been seeking assistance from others as to a possible fix. You have not provided anything useful.
As described earlier; ACCore runs the -plot command properly and will print to a printer; it simply does not produce the pdf output file using the PDF drivers.