I am trying to save out a DXF similar to this post
However I am using the Connect version and I keep getting a 'not a structure or union member' error after trying to set the value. I did add the loading of DWGSETTINGS.ma but that didn't seem to help. Here is the code
WString s; CExprValue value; value.type = CEXPR_TYPE_LONG; value.val.valLong = 1; mdlSystem_unloadMdlProgram(L"REMAP"); mdlSystem_defineCfgVar(L"MS_REMAP_CSVFILE", myCSV, DgnPlatform::ConfigurationVariableLevel::User); mdlSystem_loadMdlProgram(L"DWGSETTINGS.MA", NULL, NULL); mdlSystem_loadMdlProgram(L"REMAP.MA", NULL, NULL); MdlDesc* pMdlDescr = mdlSystem_findMdlDesc(L"REMAP"); if (NULL == pMdlDescr) { mdlDialog_dmsgsPrint(L"REMAP application not loaded !"); return ERROR; } if(SUCCESS !=mdlCExpression_setValueForApp(&value, NULL, "g_remapOptions.destDwg.remapLevels", VISIBILITY_CALCULATOR, pMdlDescr)) { mdlCExpression_generateMessage(s, mdlErrno); mdlOutput_error(s.c_str()); }