Set min. line thickness when using dwg2pdf

Please use this forum to post feedback and suggestions related to QCAD.

Moderator: andrew

Post Reply
sistemas.caw
Newbie Member
Posts: 8
Joined: Wed Apr 10, 2019 3:51 pm

Set min. line thickness when using dwg2pdf

Post by sistemas.caw » Mon Apr 22, 2019 4:08 pm

Hello,

Have any way to set min. line thickness when using dwg2pdf script?

Att,
Rhodolfo Novochadlo.

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

Re: Set min. line thickness when using dwg2pdf

Post by andrew » Tue Apr 23, 2019 9:40 am

Yes, from dwg2pdf -h:

Code: Select all

...
-w, -min-lineweight=LW  Set minimum line weight to LW drawing units
...

sistemas.caw
Newbie Member
Posts: 8
Joined: Wed Apr 10, 2019 3:51 pm

Re: Set min. line thickness when using dwg2pdf

Post by sistemas.caw » Tue Apr 23, 2019 3:22 pm

Andrew,

Thank you very much for your quickly reply,

I tried to use -w parameter. But, for some files this parameter have different behaviours. Look attached files.

PDF1 was generated using CAD1 with command (dwg2pdf.bat -a -c -d -f -n -l -w 0.5 -fs romans standard -fs romand standard -o "C:\Temp\a\2pdf\PDF1.pdf" "C:\Temp\a\2pdf\CAD1.DWG")
PDF2 was generated using CAD2 with command (dwg2pdf.bat -a -c -d -f -n -l -w 0.5 -fs romans standard -fs romand standard -o "C:\Temp\a\2pdf\PDF2.pdf" "C:\Temp\a\2pdf\CAD2.DXF")

I think that -a parameter is conflicting with -w
Attachments
PDF1.PNG
PDF1.PNG (33.48 KiB) Viewed 605 times
CAD2.pdf
(31.08 KiB) Downloaded 8 times
CAD2.DXF
(73.02 KiB) Downloaded 9 times
CAD1.pdf
(64.08 KiB) Downloaded 8 times
CAD1.dwg
(24.81 KiB) Downloaded 9 times
PDF2.PNG
PDF2.PNG (17.21 KiB) Viewed 605 times

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

Re: Set min. line thickness when using dwg2pdf

Post by andrew » Wed Apr 24, 2019 9:47 am

Yes, the value is in drawing units, not paper units. 0.5mm in drawing units are wider when zoomed in.

This might change in a future version to define a minimum lineweight independent of the zoom level.

sistemas.caw
Newbie Member
Posts: 8
Joined: Wed Apr 10, 2019 3:51 pm

Re: Set min. line thickness when using dwg2pdf

Post by sistemas.caw » Thu Apr 25, 2019 5:12 pm

Andrew, thank you very much for your help.

Do you know when is the prevision of QCad release with this improvement? This is very critical for my application and if take a long time I will need to study other solution for me.

regards,
Rhodolfo Novochadlo

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

Re: Set min. line thickness when using dwg2pdf

Post by andrew » Thu Apr 25, 2019 6:56 pm

It will be in the next snapshot release, usually released within a few days.

Snapshot releases are announced at:
https://www.qcad.org/rsforum/viewforum.php?f=16

sistemas.caw
Newbie Member
Posts: 8
Joined: Wed Apr 10, 2019 3:51 pm

Re: Set min. line thickness when using dwg2pdf

Post by sistemas.caw » Thu Apr 25, 2019 9:05 pm

Thank you very much Andrew, I will wait.

Regards,
Rhodolfo Novochadlo.

Post Reply

Return to “QCAD Suggestions and Feedback”