Macro: Version 3: helper tools to improve TechDraw documents

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
PeterPNoster
Posts: 72
Joined: Mon Sep 02, 2019 8:24 pm
Location: Switzerland

Re: Macro: Version 3: helper tools to improve TechDraw documents

Post by PeterPNoster »

Hello together,
Could anyone please this fantastic toolbox with the following functionallity?
PeterPNoster wrote: Sat May 09, 2020 3:27 pm Of course,

td_td_tan_line_line_sketch.png
To stick to the helper tools way of thinking, it should be a method that will put a helper point on a arc perpendicular to a selected line.
reox has done similar things with his dimensioning macros. --> Link
PeterPNoster
Posts: 72
Joined: Mon Sep 02, 2019 8:24 pm
Location: Switzerland

Re: Macro: Version 3: helper tools to improve TechDraw documents

Post by PeterPNoster »

Hello together,
Could anyone please upgrade this fantastic toolbox with the following functionallity?
--> Link
To stick to the helper tools way of thinking, it should be a method, that will put a helper point on an arc perpendicular to a selected line.
reox has done similar things with his dimensioning macros. --> Link
Cheers,
PeterPNoster
edi
Posts: 482
Joined: Fri Jan 17, 2020 1:32 pm

Re: Macro: Version 3: helper tools to improve TechDraw documents

Post by edi »

Hello Peter,
I think I can manage the problem. Please give me some days. I will add the tool to https://forum.freecadweb.org/viewtopic.php?f=35&t=59334
edi
Posts: 482
Joined: Fri Jan 17, 2020 1:32 pm

Re: Macro: Version 3: helper tools to improve TechDraw documents

Post by edi »

Hello Peter,
please forget the post before.

The problem can be solved already using the existing tools found in https://forum.freecadweb.org/viewtopic.php?f=35&t=59334
Techdraw14.png
Techdraw14.png (22.81 KiB) Viewed 1889 times
Workflow:
- create centerlines of the arc using "Draw circle centerlines"
- create a control vertex at the center of the arc using "Create vertex at intersection" using the two centerlines
- create a perpenticular line to the right slanting line through that control vertex using "Create a line perpendicular to another line"
- create a control vertex at the intersection of the arc an the perpendicular line using again "Create vertex at intersection"
- create the dimension using the TechDraw command "Insert length dimension"
PeterPNoster
Posts: 72
Joined: Mon Sep 02, 2019 8:24 pm
Location: Switzerland

Re: Macro: Version 3: helper tools to improve TechDraw documents

Post by PeterPNoster »

Hello edi
Thanks for taking care of the problem.
The dimensioning line should be parallel to the blue line.
Bildschirmfoto vom 2021-06-15 10-28-53.png
Bildschirmfoto vom 2021-06-15 10-28-53.png (50.11 KiB) Viewed 1860 times
Cheers,
PeterPNoster
edi
Posts: 482
Joined: Fri Jan 17, 2020 1:32 pm

Re: Macro: Version 3: helper tools to improve TechDraw documents

Post by edi »

Hi Peter,
it is a "work of art" and not 100% the standard:
TechDraw14.png
TechDraw14.png (12.19 KiB) Viewed 1844 times
Workflow:
- create a help-line (cyan) perpendicular to the top line through the right vertex
- create a second help-line (cyan) perpendicular to the first one.
- create the intersection vertex at the arc
- use TechDraw "Length dimension" selecting the first help-line and the vertex at the arc
- now the two help-lines can be erased

When creating a tool in Python, vertexes and lines can be calculated and created. But in Python there are only the same possibilitys to use the dimension commands as manually.
PeterPNoster
Posts: 72
Joined: Mon Sep 02, 2019 8:24 pm
Location: Switzerland

Re: Macro: Version 3: helper tools to improve TechDraw documents

Post by PeterPNoster »

Wow, quite a lot to be done for one dimensioning line.
I'm not an artist, just want to put a few basic dimension lines on a sheet metal drawing...
-->Link
But thank you for the effort.
Cheers
Post Reply