How do I bundle my macros and export them for other users
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
How do I bundle my macros and export them for other users
Hi everyone. I have created a number of macros. They work the best together. I want to somehow bundle these macros and upload so that other people can easily attain them. I also want them to keep their logos, toolbar icons etc. Is it possible? Even better, I can create a workbench, save all macros with related toolbar icons and have people append this workbench to their FreeCAD with the related macros and toolbars etc. Is there a way? Thank you in advance and have a great day!
Re: How do I bundle my macros and export them for other users
Thank you very much those are exactly what I was looking foropenBrain wrote: ↑Mon Sep 27, 2021 2:15 pm https://wiki.freecadweb.org/Workbench_creation
https://github.com/FreeCAD/FreeCAD-addons#readme
Re: How do I bundle my macros and export them for other users
These links helped me to create a workbench. However, there are plenty of things that I did not quite understand. What I want to learn is how do I add a macro to my workbench with its logo and appended to a toolbar with a logo. Is there a tutorial link for that task?openBrain wrote: ↑Mon Sep 27, 2021 2:15 pm https://wiki.freecadweb.org/Workbench_creation
https://github.com/FreeCAD/FreeCAD-addons#readme
Re: How do I bundle my macros and export them for other users
It's no more a macro, but a command of the workbench : https://wiki.freecadweb.org/Workbench_c ... definitionacikgozbc wrote: ↑Thu Oct 07, 2021 2:45 pm These links helped me to create a workbench. However, there are plenty of things that I did not quite understand. What I want to learn is how do I add a macro to my workbench with its logo and appended to a toolbar with a logo. Is there a tutorial link for that task?
Re: How do I bundle my macros and export them for other users
In https://forum.freecadweb.org/viewtopic.php?f=35&t=59334 you find a container macro.
That means a macro containing many macros which in the past had been individual macros.
Each "submacro" has a button to start it.
Each "submacro" is a python class having attributs and methods using fixed names.
Insertion of a new "submacro" requires only adding one line (and the new pyton class).
That means a macro containing many macros which in the past had been individual macros.
Each "submacro" has a button to start it.
Each "submacro" is a python class having attributs and methods using fixed names.
Insertion of a new "submacro" requires only adding one line (and the new pyton class).