Page 1 of 1

Set min. line thickness when using dwg2pdf

Posted: Mon Apr 22, 2019 4:08 pm
by sistemas.caw
Hello,

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

Att,
Rhodolfo Novochadlo.

Re: Set min. line thickness when using dwg2pdf

Posted: Tue Apr 23, 2019 9:40 am
by andrew
Yes, from dwg2pdf -h:

Code: Select all

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

Re: Set min. line thickness when using dwg2pdf

Posted: Tue Apr 23, 2019 3:22 pm
by sistemas.caw
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

Re: Set min. line thickness when using dwg2pdf

Posted: Wed Apr 24, 2019 9:47 am
by andrew
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.

Re: Set min. line thickness when using dwg2pdf

Posted: Thu Apr 25, 2019 5:12 pm
by sistemas.caw
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

Re: Set min. line thickness when using dwg2pdf

Posted: Thu Apr 25, 2019 6:56 pm
by andrew
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

Re: Set min. line thickness when using dwg2pdf

Posted: Thu Apr 25, 2019 9:05 pm
by sistemas.caw
Thank you very much Andrew, I will wait.

Regards,
Rhodolfo Novochadlo.

Re: Set min. line thickness when using dwg2pdf

Posted: Thu May 23, 2019 10:49 pm
by garciadelcastillo
Same problem here with "dwg2bmp", did this feature make it to 3.22.1?

Re: Set min. line thickness when using dwg2pdf

Posted: Fri May 24, 2019 8:46 am
by andrew
garciadelcastillo wrote:
Thu May 23, 2019 10:49 pm
Same problem here with "dwg2bmp", did this feature make it to 3.22.1?
Yes.