Autoload
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Autoload
Provides ability to load more workbenches on FreeCAD start. Such ability can be useful for workbench customization purposes and in combination with modules such as PieMenu, ShortCuts, CommandPanel ...
Code repository:
https://github.com/triplus/Autoload
- microelly2
- Veteran
- Posts: 4688
- Joined: Tue Nov 12, 2013 4:06 pm
- Contact:
Re: Autoload
Good idea
can this startup loader be extended to do some more startup configuration?
I had the problem to add some pathes to my python environment
https://forum.freecadweb.org/viewtopic.php?f=22&t=21996
and it seems a good place to connect to these 3rd party modules too.
can this startup loader be extended to do some more startup configuration?
I had the problem to add some pathes to my python environment
https://forum.freecadweb.org/viewtopic.php?f=22&t=21996
and it seems a good place to connect to these 3rd party modules too.
Re: Autoload
This is indeed very interesting. One of my favourite FreeCAD features is the "lazy loading" But I have a startup macro that's cycles through a few workbenches so some commands/icons are immediately available at startup for global custom toolbars. Allowing the user to tune this behaviour seems convenient. I will definitely test this.
"fight the good fight"
Re: Autoload
I can investigate and try to add something like that. In a simple form.
P.S. Will first do some test and prototypes and lets see what will be the result.
P.S. Will first do some test and prototypes and lets see what will be the result.
Re: Autoload
Features added:
Use the following convention:
Restart FreeCAD.
- Autoload modules from macro folder
- Import can occur on two FreeCAD start stages
- Exception handling
Use the following convention:
- Prefix: Autoload_ (or Autoload_1_ to import module at latter FreeCAD start stage)
- Name: Any (ASCII)
- Suffix: .py
Restart FreeCAD.
Re: Autoload
In Path Workbench was recently introduced a special folder for the post processors. Perhaps the same technique could be used here. Advantages: keep the macro directory tidyer, no need to rename.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Autoload
No as this feature was added for regular users. And they shouldn't need to care about things like that. And i tried to make sure the whole procedure can be done from the GUI with only a few clicks. If you are developer you have all other options available at your disposal.
P.S. Need to rename what?
Re: Autoload
@triplus I submit a PR to tweek the README.md
https://github.com/triplus/Autoload/pull/2
https://github.com/triplus/Autoload/pull/2
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: Autoload
I'll take a look tomorrow.Kunda1 wrote: ↑Fri Jun 30, 2017 8:04 pm @triplus I submit a PR to tweek the README.md
https://github.com/triplus/Autoload/pull/2
P.S. By taking a quick look image and a bit of fine tuning the description makes sense. As for the rest i am not sure for now. I would likely rather see a link to FreeCAD wiki to be added (describing the procedure in detail). Instead of providing such verbose (install) information for each module.
Re: Autoload
Good point. It goes without saying that the motive behind it has several reasonstriplus wrote: ↑Fri Jun 30, 2017 8:22 pmI'll take a look tomorrow.Kunda1 wrote: ↑Fri Jun 30, 2017 8:04 pm @triplus I submit a PR to tweek the README.md
https://github.com/triplus/Autoload/pull/2
P.S. By taking a quick look image and a bit of fine tuning the description makes sense. As for the rest i am not sure for now. I would likely rather see a link to FreeCAD wiki to be added (describing the procedure in detail). Instead of providing such verbose (install) information for each module.
Uniformity between all FC addons,
Options for folks who'd rather not use the addon manager who have or don't have git.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs