Invoking Script from Command line

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

Invoking Script from Command line

Edward Scerri
Hello,

I would like to check if the below can be done:
1. Invoking "librecad" from Linux command line
2. Passing 2 parameters within the invoke command
3. Parameter 1: path to existing DXF file
4. Parameter 2: script file that includes
                       a. some commands related to copy/paste of existing parts
                       b. exporting modified drawing to PDF

Can I do this using LibreCAD?

Thank you,

Edward Scerri
Reply | Threaded
Open this post in threaded view
|

Re: Invoking Script from Command line

LordOfBikes
Administrator
It is possible to use LibreCAD as a DXF to PDF converter from command line.
But it is not possible to apply any changes in this process.
You need latest code for this feature.
And you must run this on a desktop setup, because even when there is no window opening, the initialization of LibreCAD needs graphics and a screen manager.
The text terminal of a Linux server setup is not enough.

Armin
investing less than half an hour into Search function can save hours or days of waiting for a solution
Reply | Threaded
Open this post in threaded view
|

Re: Invoking Script from Command line

Edward Scerri
Many thanks for your reply
Edward Scerri

On Thu, 27 Feb 2020, 08:40 LordOfBikes [via LibreCAD], <[hidden email]> wrote:
It is possible to use LibreCAD as a DXF to PDF converter from command line.
But it is not possible to apply any changes in this process.
You need latest code for this feature.
And you must run this on a desktop setup, because even when there is no window opening, the initialization of LibreCAD needs graphics and a screen manager.
The text terminal of a Linux server setup is not enough.

Armin


If you reply to this email, your message will be added to the discussion below:
https://forum.librecad.org/Invoking-Script-from-Command-line-tp5718481p5718483.html
To unsubscribe from Invoking Script from Command line, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

Re: Invoking Script from Command line

ttshaw1
I hope it's ok to post in this thread rather than starting a new one.

Along the same lines, I'd like to open a file, change the color of its one layer (I can ensure it always has the same name) to black and white, and save as DXF R12. Is this possible to do as part of a script?