]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Make correct python dump for exportToGeom with separated results
authormpv <mpv@opencascade.com>
Wed, 27 Mar 2019 08:59:42 +0000 (11:59 +0300)
committermpv <mpv@opencascade.com>
Wed, 27 Mar 2019 08:59:42 +0000 (11:59 +0300)
src/ExchangeAPI/ExchangeAPI_Export.cpp

index 1e7e54aa88fbbf21ce57301ad56be3d6cee85576..fa1ab009e885ea54f52438e9754466c91d7dc332 100644 (file)
@@ -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<<", "<<aShapeSelected->value(0);
+    }
+
     std::string theAuthor = aBase->string(ExchangePlugin_ExportFeature::XAO_AUTHOR_ID())->value();
     if (! theAuthor.empty())
       theDumper << ", '" << theAuthor << "'";