Hi,
I am trying to make a custom workbench for myself that contains all the tools that I use regularly. I have created a module using the FreeCad build tool and its all working fine.
I wanted to know, how will I add already established tools of freecad?
for instance, I want my workbench to contain rectangle and circle sketching tools, How do I go about doing that?
Tool Addition to Workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
- microelly2
- Veteran
- Posts: 4688
- Joined: Tue Nov 12, 2013 4:06 pm
- Contact:
Re: Tool Addition to Workbench
You can load the moduls you want into your InitGui.py
You only need to know the names of the commands you want.
Code: Select all
try: # some methods from curve wb
import ZebraTool
import ParametricComb
import GeomInfo
except: pass
cmds= ['ZebraTool','ParametricComb','GeomInfo','Nurbs_DraftBSpline Editor',
'Nurbs_Create Shoe','Nurbs_Create Sole','Nurbs_Sole Change Model',
# ....
]
#create your menu with the imported methods and your own m
self.appendMenu("Nurbs", cmds)
Re: Tool Addition to Workbench
Thanks for the help but I wanted to specifically understand how can I import the "line tool" as the "Draft" and "Sketcher" workbench does.
Re: Tool Addition to Workbench
There is a wiki page that explains all the details.
https://freecadweb.org/wiki/Customize_Toolbars
Gene
https://freecadweb.org/wiki/Customize_Toolbars
Gene