dwg2pdf cli - measure label scaling

If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
User avatar
regnete
Junior Member
Posts: 13
Joined: Tue Dec 03, 2019 12:34 pm
Location: Germany

dwg2pdf cli - measure label scaling

Post by regnete » Thu Dec 05, 2019 12:37 pm

When converting a particular dwg file to pdf, the measure labels display crazy values (e.g. 159.9127 instead of 160; see attached Screenshots).

I create the pdf with the following command:

Code: Select all

dwg2pdf.bat -f -c -block=.*Model_Space.*,.*Paper_Space.* -n D:\tmp\dwgtester\10.06.08.dwg

Many of our test DWG files are handled correctly, but not this single one.
Am I doing something wrong?
Is there something wrong with the dwg file?
How can I create the expected output?

Thx,

Felix
Attachments
crazy.png
crazy.png (43.65 KiB) Viewed 3454 times

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

Re: dwg2pdf cli - measure label scaling

Post by andrew » Thu Dec 05, 2019 1:52 pm

We'd need the DWG file to look into this.

User avatar
regnete
Junior Member
Posts: 13
Joined: Tue Dec 03, 2019 12:34 pm
Location: Germany

Re: dwg2pdf cli - measure label scaling

Post by regnete » Fri Dec 06, 2019 3:03 pm

Find DWG and PDf attached. Tank you for your support.
Attachments
measure-label-scaling-test_qcad.pdf
(146.16 KiB) Downloaded 306 times
measure-label-scaling-test_expected.pdf
(87.54 KiB) Downloaded 298 times
measure-label-scaling-test.dwg
(411.15 KiB) Downloaded 310 times

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

Re: dwg2pdf cli - measure label scaling

Post by andrew » Fri Dec 06, 2019 9:34 pm

The measurements shown in QCAD are accurate.

If you want to round all dimension values to whole numbers, set
Edit > Drawing Preferences > Dimension > Dimension Settings > Label Format > Linear Dimensions > Format > Precision to "0"

User avatar
regnete
Junior Member
Posts: 13
Joined: Tue Dec 03, 2019 12:34 pm
Location: Germany

Re: dwg2pdf cli - measure label scaling

Post by regnete » Mon Dec 09, 2019 8:17 am

Sorry. Didn't get that point before.

Post Reply

Return to “QCAD Troubleshooting and Problems”