AttributeSelectionListPtr anAttrList = aBase->selectionList(CollectionPlugin_Group::LIST_ID());
theDumper << aBase << " = model.addGroup(" << aDocName << ", ";
- if (anAttrList->isWholeResultAllowed())
+ if (anAttrList->isWholeResultAllowed() && !anAttrList->selectionType().empty())
theDumper<<"\""<<anAttrList->selectionType()<<"\", ";
theDumper << anAttrList;
if (anAttrList->isGeometricalSelection())
aShell = GeomAPI_ShapeExplorer(aBoxResult.shape(), GeomAPI_Shape.SHELL)
aGroup = Part_1_doc.addFeature("Group")
aGroup.selectionList("group_list").append(aBoxResult, aShell.current())
+aGroup.selectionList("group_list").setSelectionType("SHELL") # to compute the shape for the whole result selection correctly
model.end()
# check that the resulting group is correct