Explode in command line

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
bumsik-angelswing
Newbie Member
Posts: 8
Joined: Fri Apr 02, 2021 2:24 am

Explode in command line

Post by bumsik-angelswing » Sun Apr 25, 2021 10:32 am

Hi the QCAD team,
Firstly thank you for your product and support in the forum!
We extensively use dwg2maptiles command to generate tiles from very large DWG/DXF files like 4km x 4km drawings (with -subsection option)

We found that dwg2maptiles performs much faster with exploded drawings (we saw at least 4 times faster, like from 12+ hours to 3 hours with 8 subsections, depending on drawing files) than the original files.
So we would like to explode everything before passing it to dwg2maptiles command.

However, I could not figure out how to explode drawings using command line tools. Is there a way to do this?

Regards,
Bumsik

User avatar
andrew
Site Admin
Posts: 9037
Joined: Fri Mar 30, 2007 6:07 am

Re: Explode in command line

Post by andrew » Mon Apr 26, 2021 8:42 am

No there's no command line tool like this out of the box.

You could run QCAD and execute the select all, explode and save tools like this:

Code: Select all

./qcad myfile.dxf -no-show -quit -exec scripts/Select/SelectAll/SelectAll.js -exec scripts/Modify/Explode/Explode.js -exec scripts/File/Save/Save.js
This will load myfile.dxf, select all, explode and save (and overwrite!) myfile.dxf. You might want to copy myfile.dxf first to a new file.

-no-show Use but don't display GUI.
-quit Quits QCAD, for example after executing the given script(s).

bumsik-angelswing
Newbie Member
Posts: 8
Joined: Fri Apr 02, 2021 2:24 am

Re: Explode in command line

Post by bumsik-angelswing » Sat May 01, 2021 12:19 pm

Thanks for reply.
So QCAD can be automated using these JS scripts. How interesting...

Post Reply

Return to “QCAD 'How Do I' Questions”