Macro version 4.2 multilanguage: 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!
ToniTen
Posts: 240
Joined: Fri Sep 04, 2020 10:11 am

Re: Macro version 4.2 multilanguage: helper tools to improve TechDraw documents.

Post by ToniTen »

Making a separate post because I don't want to have it all mixed up in the previous one:

When adding a vertical dimension and using "Extensions: Attributes/Modifications"/ "Position Vertical Chain Dimensions" or "Cascade Vertical Dimensions" on it, it will try to center the label on the line (even if only one dimension is selected), but it will instead place it at an offset towards the bottom of the drawing
Screenshot_2022-01-17_13-27-24.png
Screenshot_2022-01-17_13-27-24.png (5.76 KiB) Viewed 2286 times
This is a square face on a cube, I added the centerlines so it was obvious that the dimension wasn't properly centered

EDIT: Just checked, and this is the baseline behaviour of newly added dimensions in 0.19.3 too. I guess it's not the fault of TD Tools, but an issue with core FreeCAD. I've created a separate thread for this.

FreeCAD version information:

Code: Select all

OS: Ubuntu 18.04.6 LTS (XFCE/xubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.27078 (Git) AppImage
Build type: Release
Branch: (HEAD detached at bcdd926)
Hash: bcdd926686f2245fe60baface1cce1ab3dff7a5b
Python version: 3.9.9
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: Spanish/Spain (es_ES)
edi
Posts: 481
Joined: Fri Jan 17, 2020 1:32 pm

Re: Macro version 4.2 multilanguage: helper tools to improve TechDraw documents.

Post by edi »

Hi ToniTen,
thank you for testing the tools.
ToniTen wrote: Mon Jan 17, 2022 12:38 pm When adding a vertical dimension and using "Extensions: Attributes/Modifications"/ "Position Vertical Chain Dimensions" or "Cascade Vertical Dimensions" on it, it will try to center the label on the line (even if only one dimension is selected), but it will instead place it at an offset towards the bottom of the drawing
It looks like beeing an issue of TechDraw, not an issue of the new tool. Create two vertexes beeing symmetric to the horizontal axis, e.g. having the positions (0/20) and (0/-20). Create a vertical measure using this two vertexes. In the Data tab of the Combo View the Y-value is shown as zero, but the label is not positioned in the middle between the vertexes. You can create a third vertex at (0/0) to see the center point of the view.
ToniTen
Posts: 240
Joined: Fri Sep 04, 2020 10:11 am

Re: Macro version 4.2 multilanguage: helper tools to improve TechDraw documents.

Post by ToniTen »

edi wrote: Mon Jan 17, 2022 5:48 pm Hi ToniTen,
thank you for testing the tools.
You're welcome. these tools are really needed IMHO
edi wrote: Mon Jan 17, 2022 5:48 pm It looks like beeing an issue of TechDraw, not an issue of the new tool. Create two vertexes beeing symmetric to the horizontal axis, e.g. having the positions (0/20) and (0/-20). Create a vertical measure using this two vertexes. In the Data tab of the Combo View the Y-value is shown as zero, but the label is not positioned in the middle between the vertexes. You can create a third vertex at (0/0) to see the center point of the view.
Yeah, I did realize it later, that's why I made a follow-up post and then a separate thread about it. I think it's a bug on the underlying implementation, but I will let WandererFan to decide
sunshine.2003
Posts: 23
Joined: Mon Jul 05, 2021 10:27 am

Re: Macro version 4.2 multilanguage: helper tools to improve TechDraw documents.

Post by sunshine.2003 »

Create Horzontal Chain Dimension : No values indicated

Fantastic Tool, thank you!! But I got problems:

Problem A:
As you see by both screenshots, there are no numbers displayed for the length of the dimension.

Problem B:
The initial position of the lines are beyond the lower edge of the template.
Even by zooming fully out, I cannot see, where the lines are ending.
I solve the problem by selecting another dimension at the correct position, then I select all new dimensions (created formerly by the create-horizontal-chain-dimension tool) then I click on position-a-horizontal-chain-dimension .

But I think somewhere in settings, I need to change some values.
Maybe the problem arised, that the displayed items in TD had been created by the ARCH WB.
001.png
001.png (196.03 KiB) Viewed 1965 times
002.png
002.png (210.37 KiB) Viewed 1965 times
003.png
003.png (78.35 KiB) Viewed 1965 times
004.png
004.png (59.18 KiB) Viewed 1965 times
005.png
005.png (65.23 KiB) Viewed 1965 times
OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 +148 (Git)
Build type: Release
Branch: Branch_0.19.4
Hash: 476ecf091941bead59b14e44afa6064d5a66afa3
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: German/Germany (de_DE)
sunshine.2003
Posts: 23
Joined: Mon Jul 05, 2021 10:27 am

Re: Macro version 4.2 multilanguage: helper tools to improve TechDraw documents.

Post by sunshine.2003 »

006.png
006.png (78.6 KiB) Viewed 1965 times
007.png
007.png (64.51 KiB) Viewed 1965 times
User avatar
wandererfan
Veteran
Posts: 6267
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Macro version 4.2 multilanguage: helper tools to improve TechDraw documents.

Post by wandererfan »

sunshine.2003 wrote: Wed Mar 23, 2022 4:15 pm Problem A:
As you see by both screenshots, there are no numbers displayed for the length of the dimension.
Can you share your file? You can PM it to me if it is confidential.
sunshine.2003
Posts: 23
Joined: Mon Jul 05, 2021 10:27 am

Re: Macro version 4.2 multilanguage: helper tools to improve TechDraw documents.

Post by sunshine.2003 »

PM sent
User avatar
wandererfan
Veteran
Posts: 6267
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Macro version 4.2 multilanguage: helper tools to improve TechDraw documents.

Post by wandererfan »

sunshine.2003 wrote: Wed Mar 23, 2022 4:44 pm PM sent
Looks llike there is a scaling problem in the macro.

Some of the dimensions have their X and/or Y position either in metres or 1000's of mm ( see M1:100 STÜ Süd o/Wände - Draufsicht Dimension230001 to Dimension234). The X value is approximately 10m and this moves the dimension text far over to the right side.

If you change the positions (which should be position on the page in mm), then recompute the Dimensions, they appear in the proper position.

I could not fix Dimension231, 232 or 233. Not sure what's wrong there.
sunshine.2003
Posts: 23
Joined: Mon Jul 05, 2021 10:27 am

Re: Macro version 4.2 multilanguage: helper tools to improve TechDraw documents.

Post by sunshine.2003 »

Thank you for your help!

I changed the main setting into mm and tried again.
No success.
User avatar
wandererfan
Veteran
Posts: 6267
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Macro version 4.2 multilanguage: helper tools to improve TechDraw documents.

Post by wandererfan »

sunshine.2003 wrote: Thu Mar 24, 2022 5:39 am I changed the main setting into mm and tried again.
No success.
Changing the units setting won't help, You need to change the x & y numbers for each broken dimension to get them back.

An updated version of the macro is in the queue for installation to FreeCAD-macros.

If you are able to use v0.20, the chain dimension functions have been integrated into TechDraw and seem to work properly.
Post Reply