-// Copyright (C) 2014-2021 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
AttributeSelectionListPtr anObjects =
aBase->selectionList(FeaturesPlugin_ImportResult::OBJECTS());
+ CompositeFeaturePtr aCompositeFeature =
+ std::dynamic_pointer_cast<ModelAPI_CompositeFeature>(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;
}