[solved]Suppress leading zeros
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
[solved]Suppress leading zeros
Is there a solution to suppress leading zeros in dimensions?
And the comma or dot when there is no zero.
And the comma or dot when there is no zero.
Last edited by plan-b on Thu May 19, 2022 8:06 am, edited 1 time in total.
qcad pro 3.27.5.0 | windows 10 pro
Re: Suppress leading zeros
Yes and no.
Please post a screenshot and/or drawing file where we can see your goals. Thanks.
Please post a screenshot and/or drawing file where we can see your goals. Thanks.
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Re: Suppress leading zeros
To save space on the dimension lines and to keep the drawing clearer I would like to have all dimensions below 1m written as cm. So without zero and dot in front of it.
I post a screenshot and the drawing file.
I post a screenshot and the drawing file.
qcad pro 3.27.5.0 | windows 10 pro
- ryancousins
- Premier Member
- Posts: 367
- Joined: Thu Mar 19, 2020 3:47 am
- Location: Michigan, USA
Re: Suppress leading zeros
My initial thought is you could convert your drawing units from meter to cm, but then your dimensions greater than one meter would also be expressed in centimeters. Besides that, I don't know of any automatic option to accomplish your goal. Otherwise you'd have to manually re-write the dimensions that you want to look different than they do now. But perhaps someone else has an idea I have neglected to see.
Re: Suppress leading zeros
@plan-b,
thanks for the screenshot and drawing file.
Howsoever - to archive this unusual goal you could select all dims in question, explode them and overwrite the value.
To make it semi automatic use the Selection Filter, search and select all dims with a value less than 1, use the QCAD Find/Replace tool to replace zero dot with nothing.
Note: An exploded dim will loose all automatic dim function irreversible.
thanks for the screenshot and drawing file.
And how will somebody who reads the drawing know what is meter and what is cm ...? It sounds to me that you replace a little problem with a much bigger one ...
Howsoever - to archive this unusual goal you could select all dims in question, explode them and overwrite the value.
To make it semi automatic use the Selection Filter, search and select all dims with a value less than 1, use the QCAD Find/Replace tool to replace zero dot with nothing.
Note: An exploded dim will loose all automatic dim function irreversible.
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Re: Suppress leading zeros
Thanks for the answers. It is common here to specify the dimensions under 1m in cm. It is easy to see on the drawing if the distance is 50cm or 50m.
I solved the problem by marking all dimensions with the same value and changing the label. It was easier with the selection filter than I thought.
Thanks a lot
I solved the problem by marking all dimensions with the same value and changing the label. It was easier with the selection filter than I thought.
Thanks a lot
qcad pro 3.27.5.0 | windows 10 pro
Re: Suppress leading zeros
Other countries, other customs
If that is a thing in your country maybe it is worth to file a feature request below:
https://www.qcad.org/bugtracker
Glad to hear that!
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Re: Suppress leading zeros
Or you select the dims in question with the Selection Filter and change their properties in the Property Editor ("Linear measurement factor" to 100 and "decimal places" to 0) . In this case you don't have to explode the dimensions and all functionality remains.Husky wrote: ↑Wed May 18, 2022 9:06 pm... you could select all dims in question, explode them and overwrite the value.
To make it semi automatic use the Selection Filter, search and select all dims with a value less than 1, use the QCAD Find/Replace tool to replace zero dot with nothing.
Note: An exploded dim will loose all automatic dim function irreversible.
Ich will nicht streiten. Ich will nur deutlich machen, dass ich Recht habe und DU NICHT.
- petevick
- Premier Member
- Posts: 392
- Joined: Tue May 19, 2020 9:34 am
- Location: North Norfolk coast UK
Re: Suppress leading zeros
That seems a great solution TSG
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6
- ryancousins
- Premier Member
- Posts: 367
- Joined: Thu Mar 19, 2020 3:47 am
- Location: Michigan, USA
Re: Suppress leading zeros
... Mind Blown
Re: Suppress leading zeros
@TSG,
a "Next to perfect" solution. Thanks for sharing!
a "Next to perfect" solution. Thanks for sharing!
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."