[bug] Tech Draw → Add Centerline to Faces (component)

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
kaktus
Veteran
Posts: 1183
Joined: Sun Aug 11, 2019 11:59 am
Location: opolskie
Contact:

[bug] Tech Draw → Add Centerline to Faces (component)

Post by kaktus »

Hello.

While checking the quality of TechDraw WB translations, I found an error.


Close the tools :
Add Centerline between 2 Lines
Add Centerline between 2 Points

with the cancel button, deletes the drawing view. :roll:

Can anyone confirm this?
Last edited by kaktus on Sat Jun 19, 2021 8:53 am, edited 1 time in total.
Twórca polskiej wersji Wiki dla FreeCAD, współwórca polskiej wersji GUI.
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
chrisb
Veteran
Posts: 54177
Joined: Tue Mar 17, 2015 9:14 am

Re: [bug] Tech Draw → Add Centerline to Faces (component)

Post by chrisb »

kaktus wrote: Fri Jun 18, 2021 6:23 pm Can anyone confirm this?
I cannot confirm. Did you initiate this while having another dialog open?

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.20.25065 (Git)
Build type: Release
Branch: master
Hash: 4de2ad46b2b9c78ac2721a0dbea7c19306261095
Python version: 3.9.4
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: C/Default (C)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
kaktus
Veteran
Posts: 1183
Joined: Sun Aug 11, 2019 11:59 am
Location: opolskie
Contact:

Re: [bug] Tech Draw → Add Centerline to Faces (component)

Post by kaktus »

Hi.

I have included a link to the video in my next post, which also covers this case.
https://forum.freecadweb.org/viewtopic. ... 35&t=59529
Did you have the opportunity to watch my presentation :?:
Watch the video from the 3rd minute.

A link to the version of FC I am using is also included in the post.
Twórca polskiej wersji Wiki dla FreeCAD, współwórca polskiej wersji GUI.
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
chrisb
Veteran
Posts: 54177
Joined: Tue Mar 17, 2015 9:14 am

Re: [bug] Tech Draw → Add Centerline to Faces (component)

Post by chrisb »

That's what I had done here with no crash. You should add your full FreeCD infos here.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
kaktus
Veteran
Posts: 1183
Joined: Sun Aug 11, 2019 11:59 am
Location: opolskie
Contact:

Re: [bug] Tech Draw → Add Centerline to Faces (component)

Post by kaktus »

ok.
chrisb wrote: Sat Jun 19, 2021 8:23 am That's what I had done here with no crash. You should add your full FreeCD infos here.
I distinguished the link to this information in the first post.
But I also replicate this information here.

Code: Select all

OS: Debian GNU/Linux 11 (bullseye) (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.25065 (Git) AppImage
Build type: Release
Branch: master
Hash: 4de2ad46b2b9c78ac2721a0dbea7c19306261095
Python version: 3.9.4
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: Polish/Poland (pl_PL)
Twórca polskiej wersji Wiki dla FreeCAD, współwórca polskiej wersji GUI.
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
chrisb
Veteran
Posts: 54177
Joined: Tue Mar 17, 2015 9:14 am

Re: [bug] Tech Draw → Add Centerline to Faces (component)

Post by chrisb »

In such a case it is sensible to replicate the FreeCAD infos, because a developer will recognize them at a glance. If it is hidden behind a link the contents have to be read in much more detail.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
kaktus
Veteran
Posts: 1183
Joined: Sun Aug 11, 2019 11:59 am
Location: opolskie
Contact:

Re: [bug] Tech Draw → Add Centerline to Faces (component)

Post by kaktus »

If there is anything else I can do to help identify the error let me know.
;)
Twórca polskiej wersji Wiki dla FreeCAD, współwórca polskiej wersji GUI.
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
chrisb
Veteran
Posts: 54177
Joined: Tue Mar 17, 2015 9:14 am

Re: [bug] Tech Draw → Add Centerline to Faces (component)

Post by chrisb »

kaktus wrote: Sat Jun 19, 2021 9:24 am If there is anything else I can do to help identify the error let me know.
You can simplify the model as far as possible, e.g. by using just a default Part cube and upload it. Even if it is simple to rebuild, it is still easier to download a model where only two points have to be selected, and a centerline is to be cancelled.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
mendy
Posts: 262
Joined: Mon May 21, 2018 2:16 pm

Re: [bug] Tech Draw → Add Centerline to Faces (component)

Post by mendy »

Can confirm OP's deletes the view on cancel.
kaktus wrote: Fri Jun 18, 2021 6:23 pm Close the tools :
Add Centerline between 2 Lines
Add Centerline between 2 Points

with the cancel button, deletes the drawing view.
Included file and gif

Now if instead of cancel you hit Undo the cosmetic line remains. Think that was also in OP's video.
Catch is the cosmetic line has no properties thus undo can't undo it. You have to click on line and use Eraser button.

Here is link look under properties
https://wiki.freecadweb.org/TechDraw_2PointCosmeticLine

Edit: posted before FCInfo
OS: Ubuntu 20.04.2 LTS (MATE/mate)
Word size of FreeCAD: 64-bit
Version: 0.20.25065 (Git) AppImage
Build type: Release
Branch: master
Hash: 4de2ad46b2b9c78ac2721a0dbea7c19306261095
Python version: 3.9.4
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: English/United States (en_US)
Attachments
cl1.gif
cl1.gif (469.29 KiB) Viewed 1845 times
cl1.FCStd
(12.73 KiB) Downloaded 45 times
Last edited by mendy on Sat Jun 19, 2021 1:18 pm, edited 1 time in total.
User avatar
kaktus
Veteran
Posts: 1183
Joined: Sun Aug 11, 2019 11:59 am
Location: opolskie
Contact:

Re: [bug] Tech Draw → Add Centerline to Faces (component)

Post by kaktus »

No problem.
:mrgreen:


here are the test project files:
test_do_bledu_kosmetycznych.FCStd
(24.87 KiB) Downloaded 46 times
test_do_bledu_kosmetycznych-kostka_Part.FCStd
(20.05 KiB) Downloaded 51 times
one from the Part environment and the other from Part Design.

The error occurs here and here. I tested on the cosmetic vertex.
I remind that when I use other tools (from other group) the problem does not occur. :roll:


And here is my project for testing.
szablon_przyciskow.FCStd
(11.03 KiB) Downloaded 48 times
Twórca polskiej wersji Wiki dla FreeCAD, współwórca polskiej wersji GUI.
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
Post Reply