Page 1 of 1

Crash when Script cannot find folder/file

Posted: Tue Oct 07, 2008 5:21 pm
by Mschmidt
I've discovered that the program will crash when the script line cannot find the specific file or folder...

Code: Select all

    var ins = new Insert(doc, "templates/TitleBlock", 0, 0, 1.0, 0.0);
    doc.addEntity(ins);
Anyone else have this problem?
Any code to do a check for instance? (i.e. if ( filename.isReal ) )

Maybe this has something to do with the last post I made.

http://www.ribbonsoft.com/rsforum/viewtopic.php?t=420

Posted: Wed Oct 08, 2008 3:13 pm
by andrew
Have a look at class File, function exists:
http://doc.trolltech.com/qsa-1.2.2/exte ... ework.html