export macro?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

export macro?

spontarelliam
I have a drawing of a building with many layers that I use to produce several pages of PDFs. For example, I'll enable the first floor and electrical layers and export that as a PDF, then I'll disable those layers, enable second floor and electrical and export, then first floor and plumbing then export, etc.

This process is very tedious and error prone each time I make an modification to the drawing, and I'm wondering if there's a way to automate the process of enabling/disabling layers and exporting PDFs with specified names. Something like a simple macro?

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: export macro?

perepujal
I don't use it but there is support for storing multiple commands in one text file and run then at once.
See if https://librecad.readthedocs.io/en/latest/guides/cmdline.html matches your needs.
 
HTH
Pere
Reply | Threaded
Open this post in threaded view
|

Re: export macro?

spontarelliam
I found the commands for all of the drawing tools, but I don't see any commands for showing/hiding layers or for exporting PDFs. Any idea of these particular tasks are possible?
Reply | Threaded
Open this post in threaded view
|

Re: export macro?

LordOfBikes
Administrator
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.

Possibly related: https://forum.librecad.org/Invoking-Script-from-Command-line-tp5718481p5718483.html

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.

see https://librecad.readthedocs.io/en/latest/ref/widgets.html?layer-list-dock#layer-list-dock
or https://forum.librecad.org/Wish-possiblity-to-group-the-layers-to-work-with-options-or-variants-tp5718532.html
investing less than half an hour into Search function can save hours or days of waiting for a solution