I have recently received a query from an ADN partner whether it is possible to get default Save As format details from an API or Command, I’m not sure if we have command to get, but we do have a simple API to get the details.
Following tiny code snippet will give details of
void testDWGFormatDefault()
{
/*The format mentioned in Options/ Open and Save*/
AcApDocument ::SaveFormat saveFormat =
acDocManagerPtr()->defaultFormatForSave();
AcDb::AcDbDwgVersion dwgVersion;
AcDb::MaintenanceReleaseVersion maintainRelVersion;
AcApDocument* pCurDoc = acDocManagerPtr()->curDocument();
/*To get relevant dwg and mReleaseVersions*/
if( !eOkVerify(pCurDoc->getDwgVersionFromSaveFormat(saveFormat,
dwgVersion,
maintainRelVersion)))
return;
}