ECMA exportFile fileVersion

Discussion forum for C++ and script developers who are using the QCAD development platform or who are looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files, scripts and screenshots.

Post one question per topic.

Post Reply
duccoder
Active Member
Posts: 30
Joined: Thu Jun 25, 2015 10:11 am

ECMA exportFile fileVersion

Post by duccoder » Fri Dec 18, 2015 2:43 am

Hi, I found format exportFile:

Code: Select all

bool RDocumentInterface::exportFile	(	const QString & 	fileName,
const QString & 	fileVersion = "",
bool 	resetModified = true 
)	
Then I apply:

Code: Select all

documentInterface.exportFile(output, 'DXF 2007');
It's work well.
But now, I need export DXF R13 or DWG R13 or another versions, but I can't found define fileVersion on doc.
Any one can help me

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

Re: ECMA exportFile fileVersion

Post by andrew » Fri Dec 18, 2015 9:16 am

Any string for 'fileVersion' containing "R27" or "2013" will produce DXF R27 if available. Pass a string containing "R13" to get DXF or DWG R13, etc.
The format string typically comes from the format selected in a file dialog, e.g. "DXF R13 Drawing File".

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”