Draft is not showing the correct angle dimension

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
Roy_043
Veteran
Posts: 8541
Joined: Thu Dec 27, 2018 12:28 pm

Re: Draft is not showing the correct angle dimension

Post by Roy_043 »

jfc4120 wrote: Sun Jan 29, 2023 7:19 pm Made a wire on 1-2-3, moved the wire over to the right, and it gives the correct angle.
That is understandable as the DraftGeomUtils.findIntersection() function looks for endpoints that exactly match first. In that case it just returns that point without calculating the intersection. If the edges are from a single triangular wire an exact match will be found. With one edge from the sketch and one edge from the wire there is a minute tolerance between the endpoints that apparently match.
User avatar
Roy_043
Veteran
Posts: 8541
Joined: Thu Dec 27, 2018 12:28 pm

Re: Draft is not showing the correct angle dimension

Post by Roy_043 »

jfc4120 wrote: Sun Jan 29, 2023 9:08 pm otherwise all is the same.
No, it's not, the coords are different as well. You need to redo your tests. This problem occurs in V0.19 to V0.21.
User avatar
Roy_043
Veteran
Posts: 8541
Joined: Thu Dec 27, 2018 12:28 pm

Re: Draft is not showing the correct angle dimension

Post by Roy_043 »

thomas-neemann wrote: Sun Jan 29, 2023 5:39 pm it is also wrong here, but with a different value
With the center being wrong, the resulting angle depends on which endpoint of the edges is used in the calculations.
jfc4120
Posts: 448
Joined: Sat Jul 02, 2022 11:16 pm

Re: Draft is not showing the correct angle dimension

Post by jfc4120 »

@Roy_043 I also notice that in the previous version and current version that linear dimensions are correct in all views including home view. But angle dimensions are not correct in home view but other views are correct. This is a different test: Attached

The 125.26 is the correct angle.
Attachments
s6.png
s6.png (28.79 KiB) Viewed 850 times
s5.png
s5.png (24.78 KiB) Viewed 850 times
line_angle7.FCStd
(7.36 KiB) Downloaded 20 times
User avatar
Roy_043
Veteran
Posts: 8541
Joined: Thu Dec 27, 2018 12:28 pm

Re: Draft is not showing the correct angle dimension

Post by Roy_043 »

That is a different issue. You need to ensure that the draft working plane is correctly aligned before creating an angular dimension.
jfc4120
Posts: 448
Joined: Sat Jul 02, 2022 11:16 pm

Re: Draft is not showing the correct angle dimension

Post by jfc4120 »

@Roy_043 Okay going back to the original problem and in current version:

If I make a wire over the lines, including the sketch line, then delete the sketch, The angle from the wire is correct: Attached :roll:

Edit:

All was even with screen as I again used the Align_View_to_Face.FCMacro. But even aligned, a dimension to the sketch line shows wrong, but I know the angle is correct, verified with @edwilliams16 macro and sketcher is correct.
Attachments
s7.png
s7.png (23.64 KiB) Viewed 814 times
line_angle8.FCStd
(6.25 KiB) Downloaded 20 times
Last edited by jfc4120 on Sun Jan 29, 2023 10:17 pm, edited 1 time in total.
User avatar
Roy_043
Veteran
Posts: 8541
Joined: Thu Dec 27, 2018 12:28 pm

Re: Draft is not showing the correct angle dimension

Post by Roy_043 »

I have already explained that. It does not make sense to add more files when the cause of the problem has already been identified.
jfc4120
Posts: 448
Joined: Sat Jul 02, 2022 11:16 pm

Re: Draft is not showing the correct angle dimension

Post by jfc4120 »

Alright, I will start a new post concerning home view dimensions, since that is a different issue. Thanks

Also will the issue here be corrected soon?
User avatar
thomas-neemann
Veteran
Posts: 11895
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Draft is not showing the correct angle dimension

Post by thomas-neemann »

Roy_043 wrote: Sun Jan 29, 2023 9:22 pm ....
workaround: draw an additional polyline before dimensioning
Bildschirmfoto_2023-01-30_08-40-25.png
Bildschirmfoto_2023-01-30_08-40-25.png (17.31 KiB) Viewed 722 times
angle_test-tn.FCStd
(15.68 KiB) Downloaded 29 times
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
Roy_043
Veteran
Posts: 8541
Joined: Thu Dec 27, 2018 12:28 pm

Re: Draft is not showing the correct angle dimension

Post by Roy_043 »

Thanks, but this solution has already been given twice in this topic.
Post Reply