Idea about improve insert horizontal/vertical dimensions tool

Discussions about the development of the TechDraw workbench
Evgeniy
Posts: 315
Joined: Thu Jul 15, 2021 6:10 pm

Idea about improve insert horizontal/vertical dimensions tool

Post by Evgeniy »

For example if i select circle and press "insert horizontal dimension" button
circle_1.png
circle_1.png (25.14 KiB) Viewed 1702 times
I get something like this (->0<-):
circle_2.png
circle_2.png (28.64 KiB) Viewed 1702 times
But it would be much better if result of this operation to be the horizontal (or vertical) size(diameter) of the circle.
circle_3.png
circle_3.png (29.31 KiB) Viewed 1702 times
edi
Posts: 324
Joined: Fri Jan 17, 2020 1:32 pm

Re: Idea about improve insert horizontal/vertical dimensions tool

Post by edi »

Your task can be solved using TechDrawTools.FCMacro

Code: Select all

https://forum.freecadweb.org/viewtopic.php?f=35&t=59334
Workflow:
- create centerlines at circle using Draw Circle Centerlines tool
- create vertexes at intersection of horizontal centerline and circle using Create Vertexes at Intersection tool
- create horizontal measure between the vertexes
- add the ⌀-sign using the Insert a ⌀-Sign tool
Evgeniy
Posts: 315
Joined: Thu Jul 15, 2021 6:10 pm

Re: Idea about improve insert horizontal/vertical dimensions tool

Post by Evgeniy »

I know that Macro edi.
But it would be great if something like this was in the official Tech Draw workbench.

As far as I understood, Tech Draw is completely written in C and perhaps this does not allow for the rapid introduction of new features due to compilation difficulties.
chrisb
Posts: 37812
Joined: Tue Mar 17, 2015 9:14 am

Re: Idea about improve insert horizontal/vertical dimensions tool

Post by chrisb »

Evgeniy wrote: Wed Sep 22, 2021 7:19 pm I know that Macro edi.
But it would be great if something like this was in the official Tech Draw workbench.
Search edi's and domad's posts. There is work in progress.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Evgeniy
Posts: 315
Joined: Thu Jul 15, 2021 6:10 pm

Re: Idea about improve insert horizontal/vertical dimensions tool

Post by Evgeniy »

chrisb wrote: Wed Sep 22, 2021 10:19 pm Search edi's and domad's posts. There is work in progress.
What kind of messages you are talking about?
chrisb
Posts: 37812
Joined: Tue Mar 17, 2015 9:14 am

Re: Idea about improve insert horizontal/vertical dimensions tool

Post by chrisb »

Evgeniy wrote: Thu Sep 23, 2021 7:00 am What kind of messages you are talking about?
Their posts here in the forum.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Evgeniy
Posts: 315
Joined: Thu Jul 15, 2021 6:10 pm

Re: Idea about improve insert horizontal/vertical dimensions tool

Post by Evgeniy »

Don't know. I have not met anything like this.
I am not so aware of what is happening on the forum.
edi
Posts: 324
Joined: Fri Jan 17, 2020 1:32 pm

Re: Idea about improve insert horizontal/vertical dimensions tool

Post by edi »

As @chrisb mentioned, the work is in progress. It is my first attempt to extend FreeCAD using C++, therefore I am very slowly.
The first 5 tools are merged already. If you compile from https://github.com/FreeCAD/FreeCAD/tree/master/src you can use it.
See also Extension Package at https://wiki.freecadweb.org/TechDraw_Workbench
Evgeniy
Posts: 315
Joined: Thu Jul 15, 2021 6:10 pm

Re: Idea about improve insert horizontal/vertical dimensions tool

Post by Evgeniy »

I saw these pages when I was translating the TechDraw Wiki. And where is the discussion on the forum?
(By the way, these pages can already be marked for translation)
edi
Posts: 324
Joined: Fri Jan 17, 2020 1:32 pm

Re: Idea about improve insert horizontal/vertical dimensions tool

Post by edi »

Post Reply