CreatingDrawing.js Failing from Command Line

If you are having problems with QCAD version 3, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules
Always indicate Operating system, QCAD version
Attach Drawing files, Screenshots
wildspidee
Full Member
Posts: 79
Joined: Sat Nov 03, 2012 2:00 am

CreatingDrawing.js Failing from Command Line

Postby wildspidee » Wed Aug 28, 2013 4:03 am

I'm running the CreatingDrawing.js from the command line and it's throwing an error.

Call - ./qcad -autostart scripts/Examples/Tutorials/CommandLineTools/CreatingDrawing/CreatingDrawing.js

Error -
Warning: RScriptHandlerEcma::eval: script engine exception: "ReferenceError: Can't find variable: RDxfExporterFactory"
Warning: "<anonymous>()@scripts/Examples/Tutorials/CommandLineTools/CreatingDrawing/CreatingDrawing.js:27"
Warning: At least one uncaught exception:
Warning: "<anonymous>()@scripts/Examples/Tutorials/CommandLineTools/CreatingDrawing/CreatingDrawing.js:27"

Running on Mac OSX V 10.8.4
3.49 GHz Intel Core i7
16GB RAM
QCAD Pro 3.1.4.0

I didn't mess with the javascript, ran it stock from the QCAD install. Have I done something incorrectly or is there a problem with the script? Thanks for any help.

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

Re: CreatingDrawing.js Failing from Command Line

Postby andrew » Wed Aug 28, 2013 9:00 am

Thanks for the report.

Line 27:

RDxfExporterFactory.registerFileExporter();


is no longer necessary. Please delete that line and run the script the same way again.

wildspidee
Full Member
Posts: 79
Joined: Sat Nov 03, 2012 2:00 am

Re: CreatingDrawing.js Failing from Command Line

Postby wildspidee » Wed Aug 28, 2013 3:37 pm

That did the trick! I've got a triangle.

Thank you Andrew.


Return to “QCAD 3 Troubleshooting and Problems”

Who is online

Users browsing this forum: Bing [Bot] and 3 guests