Posted by LordOfBikes on Jan 20, 2023; 7:20am URL: https://forum.librecad.org/export-macro-tp5722365p5722391.html
It is possible to run LibreCAD from command line.
But I think it's not possible to switch layers on/off trough this process.
I think this was intended to bulk convert a bunch of DXF files to PDF.
Don't remember yet if there is a user documentation anywhere.
But you can ease the process by using the Layer List Filter.
By using a smart layer name scheme, you can use the filter to hide unwanted layers and use the tool buttons to enable/disable all visible layers with one click.