From cb2081082dd8af1ca47eeaa1a0ba6841130a84d6 Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 12 Oct 2018 16:34:26 +0300 Subject: [PATCH] Issue #2683: Add selection type to Dump feature --- src/SHAPERGUI/SHAPERGUI_DataModel.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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())) { -- 2.39.2