Line length confusion [Solved - sorta]

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
Panchdara
Premier Member
Posts: 185
Joined: Wed Nov 25, 2015 4:15 pm

Line length confusion [Solved - sorta]

Post by Panchdara » Thu Jul 15, 2021 11:46 am

Good day.
I am having some difficulty in understanding lengths of entities/lines. I attach a video and a .dxf file.
Top Original is based on first drawing a polyline rectangle (not shown) and then breaking up bits and then adding line segments. This is a wierd answer for line length.
Middle is based on an exploded version of the Top Original. I think the line lengths are in fact correct.
Bottom COPY Of Original is exactly that, a Ctrl-C/Ctrl-V of the Top Original. Wierd how Property of length asks to "Show" (unlike the other 2) and seems to give a wierd answer too, but NOT same as the Top Original.

Am I doing somethig wrong???

Thanks and all the best
QCAD-LineLengths.wmv
(5.26 MiB) Downloaded 332 times
QCAD-LineLengths.dxf
(105.2 KiB) Downloaded 335 times
Oh, and also, why is Text in BLUE Layer 3 showing RED? I originally wrote text in Layer 2 (Red layer) then moved to Layer 3. Other entities change colour (as is By Layer), but this text retains original colour.???
Last edited by Panchdara on Thu Jul 15, 2021 9:27 pm, edited 1 time in total.
Windows 10

CVH
Premier Member
Posts: 3416
Joined: Wed Sep 27, 2017 4:17 pm

Re: Line length confusion

Post by CVH » Thu Jul 15, 2021 12:50 pm

Hi,
Win7 QCAD 3.26.2.0
Panchdara wrote:
Thu Jul 15, 2021 11:46 am
Wierd how Property of length asks to "Show"
That is by App.Prefs. See Widgets .. Property Editor .. Show all properties
Even weirder that in my case the Top case asks for "Show" :?: :!: :shock:
Panchdara wrote:
Thu Jul 15, 2021 11:46 am
This is a wierd answer for line length.
In the case without "Show", the 73.32968 is the length of the second pick, a line entity.
After the third pick it sums only the line entities :!: :shock:

Considered buggy. You could file a report about that.
A solution would be setting the preferences to show all.
Panchdara wrote:
Thu Jul 15, 2021 11:46 am
Oh, and also, why is Text in BLUE Layer 3 showing RED?
The text is red because of the Rich text color switch "\C". aka "\C1;\H16;Original"

Also,
Remark the double horizontal line Left-High.
Top case and Botom case have one polyline.
If this is bend material, then inner angle and outer bend radius would differ.

Regards,
CVH

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4935
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: Line length confusion

Post by Husky » Thu Jul 15, 2021 7:09 pm

Well, I would try it with a drawing that doesn't contains duplicated entities. Maybe the result is then less confusing .... :shock:

Husky-2021.07.15-01.png
Husky-2021.07.15-01.png (8.91 KiB) Viewed 5983 times
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..."

Panchdara
Premier Member
Posts: 185
Joined: Wed Nov 25, 2015 4:15 pm

Re: Line length confusion

Post by Panchdara » Thu Jul 15, 2021 7:44 pm

Many thanks.
Please see attached video.
Perhaps my workflow is awkward, but the only typing were the numbers for offset and for the initial 250x8 rectangle (polyline). I am not convinced here.
QCAD-LineLengths1.wmv
(8.04 MiB) Downloaded 414 times
Windows 10

CVH
Premier Member
Posts: 3416
Joined: Wed Sep 27, 2017 4:17 pm

Re: Line length confusion

Post by CVH » Thu Jul 15, 2021 8:37 pm

Hi,
I asume that in your second video it is again only the sum of the line entities, disregarding the polyline left-high.
With the preference set to 'show all', summing appears to be flawless.
The same buggy nature, and I can replicate it with other designs too. :wink:

@ Husky,
With the dwg file:
It is quite easy to:
- Remove the duplicate line 3 times.
- Clear the 'show all' preference & reboot.
- Verify the buggy nature.

Regards,
CVH

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4935
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: Line length confusion

Post by Husky » Thu Jul 15, 2021 9:18 pm

So far I can't reproduce that:

Husky-2021.07.15-02.png
Husky-2021.07.15-02.png (20.97 KiB) Viewed 5968 times
CVH wrote:
Thu Jul 15, 2021 8:37 pm
With the preference set to 'show all', summing appears to be flawless.
CVH wrote:
Thu Jul 15, 2021 8:37 pm
- Clear the 'show all' preference & reboot.
What exactly means this in un-encrypted language?
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..."

Panchdara
Premier Member
Posts: 185
Joined: Wed Nov 25, 2015 4:15 pm

Re: Line length confusion

Post by Panchdara » Thu Jul 15, 2021 9:24 pm

Okay. I think there is an "undocumented characteristic" here.

Husky mentioned duplicate entries - Not sure where they mysteriously popped up.

CVH. Under Application Preferences, the Property Editor, the "Always show all properties..." seems to have solved this issue (an application restart is required but not prompted for or mentioned). Thank you. I have since looked (albeit not exhaustively) for this setting description... not found it yet (sorta like the TAB key from the Command Line? Hotkeys are not easily found online but I did find it in an old 2006 copy of the user manual (v2.x?)- and that was a find!)

Thanks CVH... I'll edit to say solved, but not a clean solution.

Best regards

Posted whilst Husky replying. Thanks Husky, that did solve that particular issue... not sure why though.
Windows 10

CVH
Premier Member
Posts: 3416
Joined: Wed Sep 27, 2017 4:17 pm

Re: Line length confusion [Solved - sorta]

Post by CVH » Fri Jul 16, 2021 6:11 am

Husky wrote:
Thu Jul 15, 2021 9:18 pm
CVH wrote:
Thu Jul 15, 2021 8:37 pm
With the preference set to 'show all', summing appears to be flawless.
CVH wrote:
Thu Jul 15, 2021 8:37 pm
- Clear the 'show all' preference & reboot.
What exactly means this in un-encrypted language?
Really?! There is nothing encrypted to it!
CVH wrote:
Thu Jul 15, 2021 12:50 pm
Panchdara wrote:
Thu Jul 15, 2021 11:46 am
Wierd how Property of length asks to "Show"
That is by App.Prefs. See Widgets .. Property Editor .. Show all properties
Even weirder that in my case the Top case asks for "Show" :?: :!: :shock:
App.Prefs Show All.png
App.Prefs Show All.png (49.3 KiB) Viewed 5942 times
not Show All.png
not Show All.png (21.49 KiB) Viewed 5942 times

With the preference cleared = default.
(Introduced Jun 18, 2018 : https://github.com/qcad/qcad/commit/3a8 ... 6e491d63d4)
(See Changelog: 3.21.0 (2018/06/26) aka "Add support for requestible (slow) properties")

And with a mixed selection including 'slow' properties.
  • Might display "Show"
    OR
    Might sum the length of the two line entities only : 000 + 73.32968 + 98.246095 = 171.575775
(Sorry about the lack of decimal positions, I have asked you personally HowTo)

not Show All_2.png
not Show All_2.png (22.83 KiB) Viewed 5942 times

Not being consistent with Panchdara Top-Bottom in his first video is already buggy.
Not displaying "Show" consistently with 'slow' properties is also buggy.

===== Temporary Solution =====

With the preference set, what always requires a Reboot! (Not always prompted for!)
Sums all the lengths: 166.246095 + 73.32968 + 98.246095 = 337.82187
'Slower' but flawless considering the 6 or 8 decimal digits rounding.

Show All.png
Show All.png (22.3 KiB) Viewed 5942 times

Was being so detailed, down to pictures and references, really necessary?
No regards,
CVH

Post Reply

Return to “QCAD Troubleshooting and Problems”