]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Model/Model_Document.cpp
Salome HOME
Task 5.1.7: To be able to export a part to a file and import it into an existing...
[modules/shaper.git] / src / Model / Model_Document.cpp
index c2323e13b55dc8b7994adb1d7a6fca2f100423d4..216acecd7a7a3e73fdaf670cf1cb24e95f3f3e27 100644 (file)
@@ -349,7 +349,9 @@ bool Model_Document::load(const char* theDirName, const char* theFileName, Docum
   return isOk;
 }
 
-bool Model_Document::import(const char* theFileName, bool theCheckBefore)
+bool Model_Document::import(const char* theFileName,
+                            std::list<std::shared_ptr<ModelAPI_Feature> >& theImported,
+                            bool theCheckBefore)
 {
   Handle(Model_Application) anApp = Model_Application::getApplication();
   TCollection_ExtendedString aFormat;
@@ -396,6 +398,7 @@ bool Model_Document::import(const char* theFileName, bool theCheckBefore)
             std::dynamic_pointer_cast<Model_Data>(aNewFeature->data());
         aNewFeatuerLab = aData->label().Father();
         Model_Tools::copyLabels(aCurrentLab, aNewFeatuerLab, aRelocTable);
+        theImported.push_back(aNewFeature);
       }
       anAllNewFeatures.Append(aNewFeatuerLab);
     }