Thank you. I’m a little concencend about postfix for non programmers as well. It may be relatively easy to learn for short command strings. My biggest concerns with regular procedural language are:
- Difficulty of dealing with variables.
- Difficulty in using/sharing multi line programs, as opposed to single line command strings).
- If you really want procedural, then Python would be a better choice.
That said, I was also thinking (and in the very first stages, this started out to be) a simplified Python library that others could include. When I get some time, I could certainly convert the functions into a simplified library. Right now, the commands are lambda functions with a mixture of Python built in function calls and custom functions. The biggest hurdle is getting the arguments to be flexible: handling objects, lists of objects, and lists of lists of objects; and the variety of objects that need to be coerced into each other such as string, float, int, string as float/int, string as pcbnew constant.
A simplified library might give the best of both worlds. Simple command string or simplified Python program.
Edit to add: the biggest drawback of Python is the API and navigating the numerous functions and attributes for doing the simplest things like “give me all text”, “give me all vias”, “what is the slope of this line”, “how do I draw a line segment”, “what layers is the object on”, etc. That, I think, is the biggest advantage of KiCommand. You almost have to be a mid-level Python programmer to figure it out. I think with the simplified commands in KiCommand as a base, I’m hopeful I could construct a simplified Python library.