how to save?

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

Moderator: andrew

how to save?

Postby 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.
parhelie
Newbie Member
 
Posts: 3
Joined: Sat May 31, 2008 9:47 am

Postby 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.
User avatar
andrew
Site Admin
 
Posts: 2373
Joined: Fri Mar 30, 2007 6:07 am

Postby 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

Postby 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)
parhelie
Newbie Member
 
Posts: 3
Joined: Sat May 31, 2008 9:47 am


Return to QCAD 2.1/2.2 Developers

Who is online

Users browsing this forum: No registered users and 0 guests