View Full Version : Command Line print multi-tabbed DWG
seane
13-08-2008, 05:07 AM
I am looking for a way to print tabbed .dwg files to multi page output via the cmd line. Is there a way to do this with CAD Viewer and if so how? I have played with several options in printcmd.ini, but they do not seem to make a difference.
PeterG
13-08-2008, 09:10 PM
Hi Seane,
In the [Print] section of PRINTCMD.INI, the entry PrintAllLayouts controls printing of tabbed Layouts. I.e.
[Print]
PrintAllLayouts=1
best regards,
Software Support
seane
13-08-2008, 11:27 PM
Thank you for your reply, is this feature disabled in the trial version? I have changed that setting in printcmd.ini and using the cmdline opts /h0 /al /px it still does not work
Any further suggestions?
PeterG
14-08-2008, 10:50 PM
Hi,
Please download the latest version, CAD Viewer 6.0 A.36 (http://www.guthcad.com/dlviewer.htm) (or above) which should fix it.
Best regards,
Software Support
seane
16-08-2008, 06:45 AM
This version was able to successfully print multiple layers. The issue I am currently having appears to be that some drawings do not have all their layers printed. For Example TestA.dwg is a 3 layout drawing, yet only two pages are printed.
I tried to attached a zip with two documents exhibiting this behavior as well as the output for each, but it is too large, 879.6Kb, not 97.7Kb.
I have instead sent the file to support@guthcad.com.
Any help is greatly appreciated.
PeterG
16-08-2008, 07:41 AM
Hi,
Thanks for sending the test drawings.
Actually it is a matter of terminology here. In AutoCAD the 'Layout Tabs' refer to the 'PaperSpace' displays (printed page layouts) of the drawing. So the 'PrintAllLayouts=1' setting only causes the PaperSpace displays to be printed, the ModelSpace is not printed.
However we will add a new option to include the ModelSpace as well (probably the setting will be 'PrintAllLayouts=2') in a software update at the start of next week. We will post a confirmation here when it is ready.
best regards
Software Support
seane
16-08-2008, 07:56 AM
Excellent news, I'll look forward to the next release and advise my company when it is available
mwinn
10-10-2008, 05:58 AM
I found this thread via searching. I too am attempting to print a multiple layout drawing via command-line. Here is what I have tried:
-First confirm that it will print via command-line for a single layout drawing.
-Second, use a multiple layout drawing to print.
It will only print the first page of the layout.
So I go through and run the program with /pconfig, check the setting for printing all layouts, and it prints fine through the GUI. Also make sure to save the printcmd.ini file. Call via commandline for the same file and it only prints 1 page.
Then I manually edited the printcmd.ini file and made sure that PrintAllLayouts=1 was set. Still only prints 1 page. Tried PrintAllLayouts=2, still only prints 1 page. GUI still prints the multiple layouts just fine though.
Then I ran with the /px command instead of /p. No change. Then I tried with /p2s in order to force the window to stay open and no longer bypass the print options: It bypasses the print options anyway, but does leave the window open (though not the file open.)
Using version 6.0 A.45 in Evaluation/Trial mode. AutoCAD file type is LT 2008. (If I can confirm that it will print multiple layouts via command-line as easily as it will single page, then we'll buy at least 1 license for the software, don't know how many more we will eventually need.)
I've checked all of the options and re-checked everything that I can find a reference to within the Help File and on here.
Please help! :)
-Mike
PeterG
10-10-2008, 08:51 AM
Hi Mike,
Thanks for reporting the problem. And for your detailed explanation of what you tried (in software support we appreciate that!)
Anyway yes, it is a small bug, which has a workaround. In the current shipped PRINTCMD.INI file the settings section is wrongly named [PrintCmd] instead of [Print]. Also the PrintAllLayouts setting is not getting written out during /PCONFIG. The remedy in the case where you have already run /PCONFIG is:
(1) Edit PRINTCMD.INI and move the 2 entries
PrintTagsThisFile=0
PrintAllSel=0
from the [PrintCmd] section to the [Print] section
(2) Delete the entire [PrintCmd] section
(3) Add the entry PrintAllLayouts to the [Print] section:
For print all Layouts (but not the Model Space)
PrintAllLayouts=1
For print all Layouts, including the Model Space
PrintAllLayouts=2
A new software update which includes the correct PRINTCMD.INI will be posted to our download page later today.
best regards,
Software Support
mwinn
10-10-2008, 09:44 PM
Many thanks for the expedient reply! I have to do support here for a huge variety of things so I try to be as detailed as possible whenever going through a problem description and what I have attempted. (I did try a few other things as workarounds, but not being familiar with the software I was at the mercy of the forum postings I had found and the user manual.) Will give it a try in just a few. Boss will be quite happy once I get this working. :)
-Mike
mwinn
11-10-2008, 07:01 AM
This worked like a champ! Thank you very much! Hopefully we can get the other piece to call this (long story...will post again if we can get that to work.) Problem is likely going to be the file naming conventions: Over 7,000 files to pull from and the naming isn't always good. Have to make a program to *find* the file. :)
-Mike
vBulletin® v3.8.1, Copyright ©2000-2010, Jelsoft Enterprises Ltd.