ID: | 5783 |
From: | rn...@igor2.repo.hu |
Date: | Mon, 15 Aug 2022 10:32:29 +0200 (CEST) |
Subject: | [pcb-rnd] RFC: ideas for sch-rnd script examples |
Hi all, I'm working on documentation for sch-rnd: scripting examples. (Btw, this is the last subtask for completing the nlnet supported part of the project.) I am asking for ideas on what kind of example scripts you would like to see in the doc. There are a few considerations: - Just like in pcb-rnd, an user script can create menus, hotkeys, dialog boxes, search and evaulate drawing objects, change drawing objects, draw new objects, call any action we already have. An user script has access to pretty much anything - Best examples are not only functional, but useful. It is easy to write scripts that demonstrate each feature, but that's dry, text-book-like. What I am looking for is ideas of features that may be useful in some real life application (and as a side effect they would show users how to write scripts) - We don't want to script core functionality, tho: if some feature is very important for common workflows, that will be implemented in C and will be part of sch-rnd standard distribution, we are not going to reproduce them in user scripts. So what we are looking for is functionality for rare or extreme cases. - Preferrably we'd like to have short example scripts, so optimally the functionality is small and simple. Like a whole deep learning AI based "draw schematics from verilog input" is not a good candidate. Even if you don't use sch-rnd, please think over in a generic schematics editor context if you know have such a "missing feature". Here's a good example of the above: The first example I wrote, and matches all the above is a small dialog for assisted attribute edit of tolerance symbol attribute. It is accessible from {t a}, from menu, from the attribute dialog, from the property editor dialog. It presents a few common values just in case you are too lazy to type 5%. It's a good example: especially in the {t a} form it feels natural and adds some value to the UI, but the whole use cases rare enough that I don't want to make it a core feature. The script is like 65 lines in fawk, so it's small enough. TIA, Igor2
Reply subtree:
5783 [pcb-rnd] RFC: ideas for sch-rnd script examples from rn...@igor2.repo.hu