[ Solved ] Extension Package: what is that?

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
Roy_043
Veteran
Posts: 8576
Joined: Thu Dec 27, 2018 12:28 pm

[ Solved ] Extension Package: what is that?

Post by Roy_043 »

On the TechDraw_Module page I see a new paragraph "Extension Package". What is that?

EDIT:

OK found it.
PR #4935 Adding TechDrawTools to TechDraw WB

The PR is not merged yet:
https://github.com/FreeCAD/FreeCAD/pull/4935

Strange name for tools that are include in FreeCAD.
edi
Posts: 482
Joined: Fri Jan 17, 2020 1:32 pm

Re: [ Solved ] Extension Package: what is that?

Post by edi »

Thank you for improving my first attempts in wiki.
User avatar
Roy_043
Veteran
Posts: 8576
Joined: Thu Dec 27, 2018 12:28 pm

Re: [ Solved ] Extension Package: what is that?

Post by Roy_043 »

There is some confusion about the names of the commands. The name of the command, the name of the wiki page, and the name of the icon should all be the same.

It seems likely that "Extension" part will be dropped from the name in the future. Why not do that right now?:
TechDraw_Extension_ThreadHoleSide -> TechDraw_ThreadHoleSide
edi
Posts: 482
Joined: Fri Jan 17, 2020 1:32 pm

Re: [ Solved ] Extension Package: what is that?

Post by edi »

Roy_043 wrote: Sun Aug 29, 2021 8:16 am There is some confusion about the names of the commands. The name of the command, the name of the wiki page, and the name of the icon should all be the same.
I agree with you.

The TechDrawTools.FCMacro has more than 30 tools. I plan to implement all of them in C++. Dont know how much success I will have.

The naming problems occured, because I was told that my filename CommandTools.cpp should be replaced by CommandExtensionPackage.cpp.

I try to use the following names: (where XXX is the name of the tool)

C++ command: CmdTechDrawExtensionXXX.cpp
Icon (in wiki or C++): TechDraw_ExtensionXXX.svg
Example picture in wiki: TechDraw_ExtensionXXXExample.png
Subpage in wiki: TechDraw_Extension_XXX

One icon (TechDraw_ToolCircleCenterLines.svg) has an old (wrong) name. I did not find a way to rename the file in wiki.
Post Reply