X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesAPI%2FFeaturesAPI_ImportResult.cpp;h=463d78cc4008c0aca50ed27dbb23d267117421b5;hb=refs%2Fheads%2FV9_11_BR;hp=923b246ed1a92b328935e2309152bb9d8de24165;hpb=380f01e1fce1a012267d604a1190d04bf4659447;p=modules%2Fshaper.git diff --git a/src/FeaturesAPI/FeaturesAPI_ImportResult.cpp b/src/FeaturesAPI/FeaturesAPI_ImportResult.cpp index 923b246ed..463d78cc4 100644 --- a/src/FeaturesAPI/FeaturesAPI_ImportResult.cpp +++ b/src/FeaturesAPI/FeaturesAPI_ImportResult.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2020 CEA/DEN, EDF R&D +// Copyright (C) 2014-2023 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -57,6 +57,14 @@ void FeaturesAPI_ImportResult::dump(ModelHighAPI_Dumper& theDumper) const AttributeSelectionListPtr anObjects = aBase->selectionList(FeaturesPlugin_ImportResult::OBJECTS()); + CompositeFeaturePtr aCompositeFeature = + std::dynamic_pointer_cast(aBase); + int aNbOfSubs = aCompositeFeature->numberOfSubs(); + for (int anIndex = 0; anIndex < aNbOfSubs; anIndex++) { + FeaturePtr aSubFeature = aCompositeFeature->subFeature(anIndex); + theDumper.name(aSubFeature, false, false, true); //mark as not to dump + } + theDumper << aBase << " = model.addImportResult(" << aDocName << ", " << anObjects << ")" << std::endl; }