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!
Post Reply
User avatar
Shalmeneser
Veteran
Posts: 9474
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

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

Post by Shalmeneser »

Thank you very much for the answer and the job.
User avatar
Shalmeneser
Veteran
Posts: 9474
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

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

Post by Shalmeneser »

To draw Thread lines :
  1. Create a sketch with the future lines (Z-offset to be outside and visible)
  2. Select (the view + this sketch) for your TechDraw
  3. Modify line with TechDraw_DecorateLine
  4. Do the dimensioning
Attachments
Thread line.FCStd
(22.45 KiB) Downloaded 82 times
Snip macro screenshot-26a1b8.png
Snip macro screenshot-26a1b8.png (19.42 KiB) Viewed 4578 times
Snip macro screenshot-631539.png
Snip macro screenshot-631539.png (8.05 KiB) Viewed 4578 times
Snip macro screenshot-0d0e78.png
Snip macro screenshot-0d0e78.png (11.24 KiB) Viewed 4578 times
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 »

A new, extended version has arrived in github https://github.com/FreeCAD/FreeCAD-macr ... ls.FCMacro and can be downloaded using the Extension Manager WB or the Aplication manager.

New added tools:
- create an oblique dimension chain
- create oblique coordinate dimensions
- position an oblique dimension chain
- cascade oblique dimensions

A 5-th tool calculates the area of a closed line chain, and inserts the value as an Annotation. This tool is a preliminary version, not checking wheter the line chain is closed. Be carefully using it.

PS. I am working on the integration into TechDraw WB, hopefully a PR creating the first tools can be started in some days.
User avatar
ragohix769
Posts: 565
Joined: Sat Jul 18, 2020 7:04 am
Location: Rome - Italy

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

Post by ragohix769 »

edi wrote: Tue Jul 20, 2021 5:28 am A 5-th tool calculates the area of a closed line chain, and inserts the value as an Annotation.
:D You are a hero ;-)
After #ElonMuskBuyTwitter I'm no more on Twitter, that's really enough :-(
=> Now you can find me here on #Mastodon: https://mastodon.uno/@opensoul - I hope more people do the same :-)
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

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

Post by Syres »

edi wrote: Tue Jul 20, 2021 5:28 am A new, extended version has arrived in github https://github.com/FreeCAD/FreeCAD-macr ... ls.FCMacro and can be downloaded using the Extension Manager WB or the Aplication manager.
I've submitted a minor PR https://github.com/FreeCAD/FreeCAD-macros/pull/106 if you've merge permissions
User avatar
M4x
Veteran
Posts: 1472
Joined: Sat Mar 11, 2017 9:23 am
Location: Germany

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

Post by M4x »

Once again: Thank you very much! I still have features to test :D
User avatar
Shalmeneser
Veteran
Posts: 9474
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

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

Post by Shalmeneser »

https://github.com/FreeCAD/FreeCAD-macr ... ls.FCMacro :

Code: Select all

__Version__ = '0.4.4'
:!: :!:

Code: Select all

self.setWindowTitle("TechDrawTools V- 0.4.3-multilanguage")
:?: :?:
:roll:
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

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

Post by Syres »

Shalmeneser wrote: Tue Jul 20, 2021 8:49 am https://github.com/FreeCAD/FreeCAD-macr ... ls.FCMacro :

Code: Select all

__Version__ = '0.4.4'

Code: Select all

self.setWindowTitle("TechDrawTools V- 0.4.3-multilanguage")
Hence my PR above, the version number should only need to be updated in one place
domad
Veteran
Posts: 2051
Joined: Mon Jun 22, 2020 12:16 pm

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

Post by domad »

Shalmeneser wrote: Tue Jul 20, 2021 8:49 am ........................

Code: Select all

__Version__ = '0.4.4'
:!: :!:

Code: Select all

self.setWindowTitle("TechDrawTools V- 0.4.3-multilanguage")
:?: :?:
:roll:
Hello Shalmeneser, good morning to the Community!

Thanks for the report, we already knew about the inconvenience and for this we apologize.
We confirm that the version is 0.4.4.
To correct this, simply replace 3 with 4 in line 295.
User avatar
Shalmeneser
Veteran
Posts: 9474
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

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

Post by Shalmeneser »

Syres wrote: Tue Jul 20, 2021 9:40 am Hence my PR above, the version number should only need to be updated in one place
:oops:
The link https://github.com/FreeCAD/FreeCAD-macros/pull/106 was not enough self-explanatory.
Post Reply