Re: Pseudo scripting with excel - add layer
Posted by sand1024 on Apr 01, 2025; 9:06am
URL: https://forum.librecad.org/Pseudo-scripting-with-excel-add-layer-tp5726798p5726808.html
@dxli
Yes, I've also considering adding something similar regarding commands and support of pseudo-macros.
My idea was slightly extend the existing commands and the lack of layer creation/activation is important there. Also, what might be promising - is generation of the script needed for creation of entities based on existing drawing/selection (a kind of macros).
Together with support of variables, that will let to create interesting and useful use cases. And if it will be possible to run such scripts via command line - this feature may increase automation capabilities.
I've planned to add this slightly later, as so far I have just generic rough idea of how such the set of commands that may expand the existing one may looks like.
However, as a quick fix for now - I could just add command for setting specified layer as a current one.
@Goran
If you have any ideas regarding support of such kind of scripting based on your experience - please share them.