From: vsv Date: Fri, 12 Oct 2018 13:34:26 +0000 (+0300) Subject: Issue #2683: Add selection type to Dump feature X-Git-Tag: V9_2_0a2~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cb2081082dd8af1ca47eeaa1a0ba6841130a84d6;p=modules%2Fshaper.git Issue #2683: Add selection type to Dump feature --- diff --git a/src/SHAPERGUI/SHAPERGUI_DataModel.cpp b/src/SHAPERGUI/SHAPERGUI_DataModel.cpp index bccdab261..f3d8fe4b8 100644 --- a/src/SHAPERGUI/SHAPERGUI_DataModel.cpp +++ b/src/SHAPERGUI/SHAPERGUI_DataModel.cpp @@ -206,6 +206,11 @@ bool SHAPERGUI_DataModel::dumpPython(const QString& thePath, CAM_Study* theStudy aAttr = aFeature->string(ExchangePlugin_Dump::FILE_FORMAT_ID()); if (aAttr.get()) aAttr->setValue(".py"); + + AttributeStringPtr aTypeAttr = aFeature->string(ExchangePlugin_Dump::SELECTION_TYPE_ID()); + if (aTypeAttr.get()) + aTypeAttr->setValue(ExchangePlugin_Dump::TOPOLOGICAL_NAMING_DUMP_ID()); + ModelAPI_Session::get()->finishOperation(); if (QFile::exists(aFileName.c_str())) {