is there any way to print multiple QCAD files together ?
I have created separate drawing file for each drawing and now i have to open them one by one to print and it take lot of time. so please let me know if there is any easy way.
thanks
Mitesh Maniar
Printing
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Re: Printing
Not from the user interface, no. Just like in any other application, to print a file, you have to open it and print.
Depending on how many files we are talking about, it might be worth looking at the command line tool dwg2pdf which comes with QCAD. With a simple Batch (Windows) or Bash (macOS / Linux) script you can use dwg2pdf to either produce PDF files from a number of DXF / DWG files or even to print them directly. I understand that this is an advanced concept that might or might not be interesting for your use case.
Depending on how many files we are talking about, it might be worth looking at the command line tool dwg2pdf which comes with QCAD. With a simple Batch (Windows) or Bash (macOS / Linux) script you can use dwg2pdf to either produce PDF files from a number of DXF / DWG files or even to print them directly. I understand that this is an advanced concept that might or might not be interesting for your use case.
Re: Printing
Dwg2pdf works great, yet I think that multi-page PDF is being requested. Last time I checked, dwg2pdf only produces single page output. (see my request at https://qcad.org/rsforum/viewtopic.php? ... 43&p=21509 ) Multi-page PDF can be assembled using other tools, such as pdftk.
-
- Newbie Member
- Posts: 8
- Joined: Thu Nov 15, 2018 10:24 am
Re: Printing
Can you also advise about script to be written to print multiple files ?
Example script ?
Regards,
Mitesh
Example script ?
Regards,
Mitesh
Re: Printing
The command line tool dwg2pdf is included with QCAD Professional and can be used to create PDFs from multiple files or to print multiple files directly.
In Bash (Linux / macOS):
In Bash (Linux / macOS):
Code: Select all
for f in *.dxf;
do
dwg2pdf [command line options] $f
done
-
- Newbie Member
- Posts: 8
- Joined: Thu Nov 15, 2018 10:24 am
Re: Printing
sorry but can you please advise what code i will need to execute for files store on my windows PC desktop in print pdf folder ?
Regards,
Mitesh
Regards,
Mitesh
Re: Printing
Under Windows, you'd have to use something called "Batch" which I'm not familiar with...
You might want to try to Google for "batch programming windows iterate files".
You might want to try to Google for "batch programming windows iterate files".
Re: Printing
Thanks to Andrew for also adding multiple sheet support in Dwg2Pdf for QCAD 3.22.
Here's an example of a 3-page PDF export from Linux command line:
/usr/share/httpd/opt/qcad-3.22.0-pro-linux-x86_64/dwg2pdf -platform offscreen -a -f -block="Layout2,Layout3,Layout4" -m 5 -l -p "ANSI C (431.8x558.8)" mydrawing.dxf
I haven't tried this in awhile, but this should be an example for Windows command line: (maybe CD "C:/Program Files/QCAD" first?)
"C:/Program Files/QCAD/qcad.exe" -autostart scripts/Pro/Tools/Dwg2Pdf/Dwg2Pdf.js dwg2pdf.bat -a -f -block="Layout2,Layout3,Layout4" -m 5 -l -p "ANSI C (431.8x558.8)" "C:/Users/Me/Documents/mydrawing.dxf"
Here's an example of a 3-page PDF export from Linux command line:
/usr/share/httpd/opt/qcad-3.22.0-pro-linux-x86_64/dwg2pdf -platform offscreen -a -f -block="Layout2,Layout3,Layout4" -m 5 -l -p "ANSI C (431.8x558.8)" mydrawing.dxf
I haven't tried this in awhile, but this should be an example for Windows command line: (maybe CD "C:/Program Files/QCAD" first?)
"C:/Program Files/QCAD/qcad.exe" -autostart scripts/Pro/Tools/Dwg2Pdf/Dwg2Pdf.js dwg2pdf.bat -a -f -block="Layout2,Layout3,Layout4" -m 5 -l -p "ANSI C (431.8x558.8)" "C:/Users/Me/Documents/mydrawing.dxf"