Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9912bc5
)
Make correct python dump for exportToGeom with separated results
author
mpv
<mpv@opencascade.com>
Wed, 27 Mar 2019 08:59:42 +0000
(11:59 +0300)
committer
mpv
<mpv@opencascade.com>
Wed, 27 Mar 2019 08:59:42 +0000
(11:59 +0300)
src/ExchangeAPI/ExchangeAPI_Export.cpp
patch
|
blob
|
history
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 << "'";