Tangential dimensioning

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

Tangential dimensioning

Post by PeterPNoster »

Hello,
Is there a funtionality in TechDraw to create a dimension parallel to a line, ending at both sides tangentially?
tangentially_parallel_to_line.PNG
tangentially_parallel_to_line.PNG (37.07 KiB) Viewed 4173 times
User avatar
bitacovir
Veteran
Posts: 1570
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: Tangential dimensioning

Post by bitacovir »

PeterPNoster wrote: Mon May 04, 2020 8:29 am Hello,
Is there a funtionality in TechDraw to create a dimension parallel to a line, ending at both sides tangentially?
Is it not equal to a vertical dimension?
https://wiki.freecadweb.org/TechDraw_Di ... cal_Extent
::bitacovir::
==================
One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

Canal Youtube Grupo Telegram de FreeCAD Español

My personal web site
My GitHub repository
Mini Airflow Tunnel Project
chrisb
Veteran
Posts: 54302
Joined: Tue Mar 17, 2015 9:14 am

Re: Tangential dimensioning

Post by chrisb »

bitacovir wrote: Mon May 04, 2020 12:47 pm Is it not equal to a vertical dimension?
Not if the radii are different.

You can add cosmetic vertices, but I'm afraid you have to position them manually or you have to calculate their positions.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
PeterPNoster
Posts: 72
Joined: Mon Sep 02, 2019 8:24 pm
Location: Switzerland

Re: Tangential dimensioning

Post by PeterPNoster »

Hello,
In Creo it works like that:
Select bow 1 and 2, then tell the measurement line that she must be parallel to the relevant line.
Forum_Creo.PNG
Forum_Creo.PNG (12.29 KiB) Viewed 4124 times
reox
Posts: 929
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: Tangential dimensioning

Post by reox »

I think this is really hard right now... I wrote a small macro to calculate the points on circles which are parallel to a given line (here: the two points are parallel to the selected third line)
However, we can IMO not create a dimension, because dimensions are parallel to X or Y or the vector connecting the two points.
Hence, this would only be possible if we had a dimension which can be parallel to a given vector.
screenshot-20200505_21041588705469.png
screenshot-20200505_21041588705469.png (33.11 KiB) Viewed 4065 times
Please have a look: https://github.com/reox/FreeCAD_macros/ ... re.FCMacro
PeterPNoster
Posts: 72
Joined: Mon Sep 02, 2019 8:24 pm
Location: Switzerland

Re: Tangential dimensioning

Post by PeterPNoster »

Wow, reox,
Almost there. :D
Sorry, I can't support you, in making the dimensioning line parallel to the selected line direction.
reox
Posts: 929
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: Tangential dimensioning

Post by reox »

Maybe wandererfan can help here, but I guess that without major changes it is not possible to store a direction vector for the Distance measures?
However, each distance measure could be written in that form, i.e. for two points p1 and p2, the distance in direction d is |d dot (p2 - p1)|, if d is a unit vector.
PeterPNoster
Posts: 72
Joined: Mon Sep 02, 2019 8:24 pm
Location: Switzerland

Re: Tangential dimensioning

Post by PeterPNoster »

I suppose that it does not help that much, when we constrain the spec to explicit SheetMetal usage.
Where one has allways a tangential connected bow to a line...
reox
Posts: 929
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: Tangential dimensioning

Post by reox »

Actually, it is possible to fake it:
screenshot-20200507_12001588845637.png
screenshot-20200507_12001588845637.png (42.52 KiB) Viewed 3911 times
Simply calculate the point which is parallel to the selected edge, with the length of the distance between the points in that direction.

I updated the macro to create the two cosmetic vertices.
chrisb
Veteran
Posts: 54302
Joined: Tue Mar 17, 2015 9:14 am

Re: Tangential dimensioning

Post by chrisb »

Can this be integrated in the regular TechDraw workbench?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply