Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make correct python dump for exportToGeom with separated results
[modules/shaper.git]
/
src
/
ExchangeAPI
/
ExchangeAPI_Export.cpp
diff --git
a/src/ExchangeAPI/ExchangeAPI_Export.cpp
b/src/ExchangeAPI/ExchangeAPI_Export.cpp
index 1e7e54aa88fbbf21ce57301ad56be3d6cee85576..fa1ab009e885ea54f52438e9754466c91d7dc332 100644
(file)
--- 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 << "'" ;
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 << "'";
std::string theAuthor = aBase->string(ExchangePlugin_ExportFeature::XAO_AUTHOR_ID())->value();
if (! theAuthor.empty())
theDumper << ", '" << theAuthor << "'";