Line weight in SVG export

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
ouilogique
Active Member
Posts: 39
Joined: Sun Feb 21, 2021 2:43 pm

Line weight in SVG export

Post by ouilogique » Sun Feb 21, 2021 3:01 pm

I am using QCAD Pro 3.25.2.0 (3.25.2) on macOS Big Sur 11.2.1.
The SVG generated by QCAD are great, but I can’t scale the line weights, they are too thin in the SVG.
I tried to play with the -min-lineweight parameter without success.
I do the conversion on the command line and you see the code below.
Thank you for your help.

Code: Select all

shopt -s expand_aliases
alias dwg2svg="/Applications/QCAD-Pro.app/Contents/Resources/dwg2svg"

FILE_IN=DIAGRAM
FILE_OUT=$FILE_IN
dwg2svg                              \
    -force                           \
    -outfile=$FILE_OUT.svg           \
    -equal-margins=10                \
    -min-lineweight=0.01             \
    -preserve-geometry               \
    $FILE_IN.dxf

ouilogique
Active Member
Posts: 39
Joined: Sun Feb 21, 2021 2:43 pm

Re: Line weight in SVG export

Post by ouilogique » Sun Feb 21, 2021 4:08 pm

I found what was wrong. I simply forgot to specify to print the paper space with the option below:

Code: Select all

-block="*Paper_space"

Post Reply

Return to “QCAD 'How Do I' Questions”