EAGLE Central Forums
Where the EAGLE community meets. Sponsored by Stratford Digital.

Home » CadSoft Support Forums » eagle.suggest.eng » Dynamic menu entries
Dynamic menu entries [message #166325] Thu, 21 July 2016 09:29
Messages: 608
Registered: March 2015
Location: UK
Senior Member
I'm working on integrating GIT into my EAGLE flow by adding a new menu and various scripts/ulp. As part of this it would be really handy to have menu's where their entries can be dynamically generated each time they open.

So for example the GIT menu would have a 'Branch' item which would lead to a submenu containing currently available branches at the top, a separator and then a "New branch...' item which would pop up a dialog to specify the new branch. Next time the menu was accessed this new branch should be listed automatically under the 'Branch' sub menu. This would also allow for the sub-menu to be correctly populated automatically when opening a design contained in an existing repository for the first time without having to go and run any scripts to re-build the menu.

Now, I guess I could do this in a hacky way by writing out a script which re-generates the menu based on examining the repository but I think it would be nice if there were a cleaner way to do this, e.g. the ability for a sub-menu to be populated on the fly by the execution of another script/ulp.

Many thanks,


Previous Topic: Add support for 3D mouse
Next Topic: Alternative symbols for easy rotation
Goto Forum:

Current Time: Tue Oct 17 06:05:21 GMT 2017