void load_svg_to_matrix_with_subobjects_identification_use_acronyms_for_ROI_names(string strSVGPathName, string strPathName_arg2acr, string strPathName_acr2full)
{
MatrixLayer matlayer = Project.ActiveLayer();
if (!matlayer)
{
out_str("Matrix must be active!");
return;
}
STPATHSMNG_SubObjectsIdentification stIdentify;
stIdentify.lpczPathName_arg2acr = strPathName_arg2acr;
stIdentify.lpczPathName_acr2full = strPathName_acr2full;
OLP olpRet = matlayer.PathsObjectsManagement(PATHSMNG_INITIALIZE_SUBOBJECTS_IDENTIFICATION, NULL, 0, &stIdentify);
LPCOSTR lpcszSVGPathName = strSVGPathName;
STPATHSMNG_AddPathsObj stAdd;
stAdd.bSkipFirstShapeIfRectMatchesRootRect = TRUE;
stAdd.bUseAcronymsForROINames = TRUE;
olpRet = matlayer.PathsObjectsManagement(PATHSMNG_ADD_PATHS_OBJ, lpcszSVGPathName, 0, &stAdd);
if (olpRet <= 0)
{
out_str("Failed to add SVG!");
return;
}
}