Tangential dimensioning

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
domad
Veteran
Posts: 2096
Joined: Mon Jun 22, 2020 12:16 pm

Re: Tangential dimensioning

Post by domad »

PeterPNoster wrote: Mon Jun 14, 2021 7:41 am ...............
Hello to the Community, Hello PeterPNoster!
You may find the solution here: https://forum.freecadweb.org/viewtopic.php?f=35&t=59334
In the gif there is a flow that can be used for the qutature of the tangency
PeterPNoster
Posts: 72
Joined: Mon Sep 02, 2019 8:24 pm
Location: Switzerland

Re: Tangential dimensioning

Post by PeterPNoster »

Hello domad,
Nice toolbox, I did not know this function.
domad wrote: Mon Jun 14, 2021 8:22 am In the gif there is a flow that can be used for the qutature of the tangency
Can you tell me which function is meant?

Cheers,
PeterPNoster
domad
Veteran
Posts: 2096
Joined: Mon Jun 22, 2020 12:16 pm

Re: Tangential dimensioning

Post by domad »

PeterPNoster wrote: Mon Jun 14, 2021 8:51 am Hello domad,
Nice toolbox, I did not know this function.
...........
Can you tell me which function is meant?
Cheers,
PeterPNoster
Hello PeterPNoster!
I apologize for the delay, but before I didn't have time to make a * .gif to show how it's done: https://forum.freecadweb.org/viewtopic. ... 4&start=10
PeterPNoster
Posts: 72
Joined: Mon Sep 02, 2019 8:24 pm
Location: Switzerland

Re: Tangential dimensioning

Post by PeterPNoster »

domad wrote: Tue Jun 15, 2021 1:56 pm Hello PeterPNoster!
I apologize for the delay, but before I didn't have time to make a * .gif to show how it's done: https://forum.freecadweb.org/viewtopic. ... 4&start=10
Thank you!
PeterPNoster
Posts: 72
Joined: Mon Sep 02, 2019 8:24 pm
Location: Switzerland

Re: Tangential dimensioning

Post by PeterPNoster »

Hello together,
How do we get this two very useful TechDraw macros into the main branch? Cheers,
PeterPNoster
chrisb
Veteran
Posts: 54313
Joined: Tue Mar 17, 2015 9:14 am

Re: Tangential dimensioning

Post by chrisb »

PeterPNoster wrote: Sat Dec 18, 2021 9:56 am How do we get this two very useful TechDraw macros into the main branch?
Edi is working on it. If you can help out, it sure would be appreciated!
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
domad
Veteran
Posts: 2096
Joined: Mon Jun 22, 2020 12:16 pm

Re: Tangential dimensioning

Post by domad »

PeterPNoster wrote: Sat Dec 18, 2021 9:56 am .....
Hi PeterPNoster, greetings to the community!
You can already create them with @edi "TechDrawTools" macro, here some examples https://forum.freecadweb.org/viewtopic.php?f=35&t=59334.
And hopefully soon natively integrated into TechDraw, here the wiki "Extensions" https://wiki.freecadweb.org/TechDraw_Workbench.
PeterPNoster
Posts: 72
Joined: Mon Sep 02, 2019 8:24 pm
Location: Switzerland

Re: Tangential dimensioning

Post by PeterPNoster »

Dear domad,
I'm still not sure, if the tangential dimensioning can be done with the TechDrawTools.
Bildschirmfoto vom 2021-12-26 13-12-53.png
Bildschirmfoto vom 2021-12-26 13-12-53.png (17.38 KiB) Viewed 2231 times
PeterPNoster
User avatar
Roy_043
Veteran
Posts: 8585
Joined: Thu Dec 27, 2018 12:28 pm

Re: Tangential dimensioning

Post by Roy_043 »

It is a bit of a hassle:
  1. Create centerlines for the arcs at each end.
  2. Create a vertex at each end at the intersection of these centerlines.
  3. Create lines through these vertices parallel to one of the longest edges.
  4. Create vertices at the intersections of the largest arcs and the just created parallel lines.
  5. You now have two vertices that you can use for your dimension, the rest of the temporary geometry can be removed.
edi
Posts: 483
Joined: Fri Jan 17, 2020 1:32 pm

Re: Tangential dimensioning

Post by edi »

PeterPNoster wrote: Sat Dec 18, 2021 9:56 am How do we get this two very useful TechDraw macros into the main branch?
As far as I can see the macro https://github.com/reox/FreeCAD_macros/ ... mensioning creates a TechDraw vertex at the intersection of two straight lines.

- In TechDrawTools.FCMacro you will find a tool (create intersection) which creates TechDraw vertexes at the intersection of two straight lines, a straight line and a circle or two circles. The result is 0, 1 or 2 vertexes.

- To solve the issue in FreeCAD's Python you can use the objects Part.Line and Part.Circle which both have a method intersect returning a tuple including the resulting vertexes. As example see TechDrawTools.FCMacro class IntersectionVertex about line 2440.

- All that stuff has been realized in C++ (https://forum.freecadweb.org/viewtopic.php?f=17&t=63548) and is waiting to become merged into the main branch.
Post Reply