From: mpv Date: Wed, 27 Mar 2019 08:59:42 +0000 (+0300) Subject: Make correct python dump for exportToGeom with separated results X-Git-Tag: V9_3_0b2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=edcf909c7c113214c6f9350d3c658e52a9da694b;p=modules%2Fshaper.git Make correct python dump for exportToGeom with separated results --- diff --git a/src/ExchangeAPI/ExchangeAPI_Export.cpp b/src/ExchangeAPI/ExchangeAPI_Export.cpp index 1e7e54aa8..fa1ab009e 100644 --- a/src/ExchangeAPI/ExchangeAPI_Export.cpp +++ b/src/ExchangeAPI/ExchangeAPI_Export.cpp @@ -127,6 +127,12 @@ void ExchangeAPI_Export::dump(ModelHighAPI_Dumper& theDumper) const aBase->string(ExchangePlugin_ExportFeature::XAO_FILE_PATH_ID())->value(); correctSeparators(aTmpXAOFile); theDumper << "exportToXAO(" << aDocName << ", '" << aTmpXAOFile << "'" ; + AttributeSelectionListPtr aShapeSelected = + aBase->selectionList(ExchangePlugin_ExportFeature::SELECTION_LIST_ID()); + if (aShapeSelected->isInitialized() && aShapeSelected->size() == 1) { + theDumper<<", "<value(0); + } + std::string theAuthor = aBase->string(ExchangePlugin_ExportFeature::XAO_AUTHOR_ID())->value(); if (! theAuthor.empty()) theDumper << ", '" << theAuthor << "'";