Autoload

A forum for research and development of the user interface of FreeCAD

Moderator: agryson

chrisb
Posts: 18093
Joined: Tue Mar 17, 2015 9:14 am

Re: Autoload

Post by chrisb » Fri Jun 30, 2017 9:53 pm

triplus wrote:
Fri Jun 30, 2017 7:34 pm
P.S. Need to rename what?
HelloWorld.py -> Autoload_HelloWorld.py

triplus
Posts: 8677
Joined: Mon Dec 12, 2011 4:45 pm

Re: Autoload

Post by triplus » Fri Jun 30, 2017 10:18 pm

chrisb wrote:
Fri Jun 30, 2017 9:53 pm
triplus wrote:
Fri Jun 30, 2017 7:34 pm
P.S. Need to rename what?
HelloWorld.py -> Autoload_HelloWorld.py
There is no need to create HelloWorld.py first. If you plan to add some code to be loaded on FreeCAD start you need to use the Autoload_ prefix in the first place. And as for your other concern. I don't feel it clutters the macro folder to have the module to be loaded there. As i do imagine regular user does want to have it listed in the macro dialog. And to be able to create, delete and edit it at any time from the macro dialog GUI and by using built in code editor. Any other option likely involves more complex workflow to achieve the same result and therefore makes less sense to me. Whoever wants to use more complex option likely won't use Autoload module in the first place and therefore likely isn't the target audience.

chrisb
Posts: 18093
Joined: Tue Mar 17, 2015 9:14 am

Re: Autoload

Post by chrisb » Fri Jun 30, 2017 10:22 pm

Thanks for the answers, you are probably right.

Post Reply