<validator id="GeomValidators_Face" parameters="plane"/>
</shape_selector>
<doublevalue id="from_size" label="Size"
- min="0" step="1.0" default="0"
+ min="0" step="1.0" default="10"
icon=":icons/dimension_down.png"
tooltip="Height">
</doublevalue>
#include <ModelAPI_Session.h>
#include <ModelAPI_ResultBody.h>
+#include <ModelAPI_AttributeSelection.h>
+#include <ModelAPI_AttributeSelectionList.h>
+
+#include <SketchPlugin_SketchEntity.h>
+#include <FeaturesPlugin_CompositeBoolean.h>
#include <ModuleBase_Tools.h>
#include <ModuleBase_Operation.h>
if (aIsOp)
aMgr->abortOperation();
theOp->abort();
+ } else {
+ DataPtr aData = aSketchFeature->data();
+ AttributeSelectionPtr aSelAttr =
+ std::dynamic_pointer_cast<ModelAPI_AttributeSelection>
+ (aData->attribute(SketchPlugin_SketchEntity::EXTERNAL_ID()));
+ if (aSelAttr.get()) {
+ ResultPtr aRes = aSelAttr->context();
+ GeomShapePtr aShape = aSelAttr->value();
+ if (aRes.get()) {
+ AttributeSelectionListPtr aSelList =
+ aCompFeature->data()->selectionList(FeaturesPlugin_CompositeBoolean::BOOLEAN_OBJECTS_ID());
+ aSelList->append(aRes, GeomShapePtr());
+ updateObject(aCompFeature);
+ }
+ }
}
}