From edcf909c7c113214c6f9350d3c658e52a9da694b Mon Sep 17 00:00:00 2001 From: mpv Date: Wed, 27 Mar 2019 11:59:42 +0300 Subject: [PATCH] Make correct python dump for exportToGeom with separated results --- src/ExchangeAPI/ExchangeAPI_Export.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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 << "'"; -- 2.30.2