how to save?

Post here to ask questions about or get help with the scripting module of QCAD 2.1/2.2.

Moderator: andrew

Locked
parhelie
Newbie Member
Posts: 3
Joined: Sat May 31, 2008 9:47 am

how to save?

Post by parhelie » Sat May 31, 2008 9:52 am

i'm writing a script which would make many drawings and would record it in different files.
i dont found the command.
thaks for your help.

User avatar
andrew
Site Admin
Posts: 5370
Joined: Fri Mar 30, 2007 6:07 am

Post by andrew » Sat May 31, 2008 8:25 pm

Unfortunately, the "save" and "save as" functions are not available through the scripting interface at this point.

parhelie
Newbie Member
Posts: 3
Joined: Sat May 31, 2008 9:47 am

Post by parhelie » Sun Jun 01, 2008 8:54 am

It is really sad. Thank you all the same :cry:

parhelie
Newbie Member
Posts: 3
Joined: Sat May 31, 2008 9:47 am

Post by parhelie » Wed Jun 04, 2008 6:46 am

Yes, it is!

Code: Select all

/**
 * example 
 *
 * Creates and save a drawing.
 */
function main() {
    var app = new App();
    app.fileNew();
    /* here the drawing ....*/
     app.fileSave('DrawingName.dxf'); 
}
Too easy 8)

Locked

Return to “QCAD 2.1/2.2 Developers”