[solved] I want to print all block elements.

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
wwponv158
Newbie Member
Posts: 6
Joined: Wed Nov 02, 2022 6:01 am

[solved] I want to print all block elements.

Post by wwponv158 » Wed Feb 01, 2023 8:22 am

I want to print all the block elements at once using the command line tool.

But I have to enter every block one by one using comma. Any other way?
Attachments
블록요소.png
블록요소.png (12.62 KiB) Viewed 1460 times

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

Re: I want to print all block elements.

Post by andrew » Wed Feb 01, 2023 9:50 am

The block list may contain regular expressions:
https://www.qcad.org/en/products/qcad-c ... ls#dwg2pdf

To print / export all blocks, you can use the regular expression ".*"

Code: Select all

dwg2pdf -o allblocks.pdf -block=".*" input.dxf

wwponv158
Newbie Member
Posts: 6
Joined: Wed Nov 02, 2022 6:01 am

that's not working

Post by wwponv158 » Wed Feb 01, 2023 12:31 pm

I tried to print all the elements in the flange.png example.

But the result is coming out like result.png.
Attachments
result.png
result.png (39.05 KiB) Viewed 1433 times
flange.png
flange.png (92.86 KiB) Viewed 1433 times

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

Re: I want to print all block elements.

Post by andrew » Wed Feb 01, 2023 12:36 pm

The dwg2pdf example above produces a PDF with one block from the drawing file per page.
The model space of a drawing is a block (as shown in your result.png). Layout spaces are other blocks (as shown in your flange.png).

Perhaps, you can elaborate on what you are trying to do as I think we are talking about different things.

wwponv158
Newbie Member
Posts: 6
Joined: Wed Nov 02, 2022 6:01 am

you are right.

Post by wwponv158 » Wed Feb 01, 2023 12:40 pm

you are right.
I wanted to print all layouts and blocks

Post Reply

Return to “QCAD 'How Do I' Questions”