+void SketchPlugin_ConstraintFillet::attributeChanged(const std::string& theID)
+{
+ if (theID == SketchPlugin_Constraint::ENTITY_A() ||
+ theID == SketchPlugin_Constraint::ENTITY_B()) {
+ // clear the list of fillet entities
+ AttributeRefListPtr aRefListOfFillet = std::dynamic_pointer_cast<ModelAPI_AttributeRefList>(
+ data()->attribute(SketchPlugin_Constraint::ENTITY_C()));
+ aRefListOfFillet->clear();
+
+ // remove all produced objects and constraints
+ DocumentPtr aDoc = sketch()->document();
+ std::list<FeaturePtr>::iterator aCIt = myProducedFeatures.begin();
+ for (; aCIt != myProducedFeatures.end(); ++aCIt)
+ aDoc->removeFeature(*aCIt);
+ myProducedFeatures.clear();
+
+ // clear auxiliary flag on initial objects
+ for (aCIt = myBaseObjects.begin(); aCIt != myBaseObjects.end(); ++aCIt)
+ (*aCIt)->boolean(SketchPlugin_SketchEntity::AUXILIARY_ID())->setValue(false);
+ myBaseObjects.clear();
+ }
+}
+