Discussion forum for contributors and developers who are using the QCAD version 3 ECMAScript development platform or the C++ plugin interface or who are otherwise looking to contribute to QCAD (translations, documentation, etc).

hungerburg, may I ask you to make a simple script wich will use maximum of theese commands to make a drawind, and save the drawing in script locate folder or in any other filder. I see you very good linux and QCAD user.

I tried to run script from link, byt something is wrong with it (please look at my log below).
Then I comment the last row: di.exportFile("example.dxf", "DXF 2000");
Then no any errors arrived.
But I can't get result file.

where did you look for the file "example.dxf"? I found it in /opt/qcad3, because this is where I installed qcad3. (That's called the "working directory" of the application. Unfortunately this is different from the "current directory", the one where I issue the command…)

You will not find it though, if you comment the line that saves the drawing to file Maybe make the line read "di.exportFile("/home/alf/example.dxf", "DXF 2000");" to have it created in your home directory, if you go by the name "alf" on your system…

alf2006x: one common cause of this, is that an exception occurs (syntax error, typo, etc) and QCAD wants to show the debugger but cannot since we are using the -no-gui switch. Try to run the script without -no-gui and see if the debugger pops up. Once your script works, try with -no-gui again.