dwg2pdf function consult
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.
-
- Junior Member
- Posts: 11
- Joined: Tue Jun 18, 2024 11:26 am
dwg2pdf function consult
dwg2pdf, this api parameter can support all files in a folder batch to pdf
-
- Premier Member
- Posts: 4950
- Joined: Wed Sep 27, 2017 4:17 pm
Re: dwg2pdf function consult
Strange line of questioning ...
You probably need to write a batch file that cycles all dxf/dwg files in a folder and call dwg2pdf for each.
Refer to: https://www.qcad.org/rsforum/viewtopic. ... 660#p44660
Regards,
CVH
You probably need to write a batch file that cycles all dxf/dwg files in a folder and call dwg2pdf for each.
Refer to: https://www.qcad.org/rsforum/viewtopic. ... 660#p44660
Regards,
CVH
- andrew
- Site Admin
- Posts: 8782
- Joined: Fri Mar 30, 2007 6:07 am
Re: dwg2pdf function consult
Under Windows, you can use a Batch command to call dwg2pdf for each file in the current directory, for example:
Under Linux / macOS, you can use Bash to achieve the same:
These are just examples, you might need to adjust this to your specific needs. An Internet search engine or an AI can help with Batch / Bash programming as this has nothing to do with QCAD.
If you have many files to convert, you might want to run multiple background processes to use your CPU cores effectively. Again, there are plenty of resources on the Internet about these topics.
Code: Select all
for %f in (*.dxf) do dwg2pdf.bat -o %~nf.pdf %f
Code: Select all
for f in *.dxf; do dwg2pdf -o "${f%.dxf}.pdf" $f; done
If you have many files to convert, you might want to run multiple background processes to use your CPU cores effectively. Again, there are plenty of resources on the Internet about these topics.