void FeaturesAPI_Extrusion::setNestedSketch(const ModelHighAPI_Reference& theSketch)
{
mysketch->setValue(theSketch.feature());
+
+ // To make Sketch feature execute and subfeatures execute.
+ feature()->document()->setCurrentFeature(feature(), false);
+
// to inform that the history is updated due to the sketch moved under the composite feature
if (theSketch.feature().get()) {
theSketch.feature()->document()->updateHistory(ModelAPI_Feature::group());
void FeaturesAPI_ExtrusionBoolean::setNestedSketch(const ModelHighAPI_Reference& theSketch)
{
mysketch->setValue(theSketch.feature());
+
+ // To make Sketch feature execute and subfeatures execute.
+ feature()->document()->setCurrentFeature(feature(), false);
+
// to inform that the history is updated due to the sketch moved under the composite feature
if (theSketch.feature().get()) {
theSketch.feature()->document()->updateHistory(ModelAPI_Feature::group());
void FeaturesAPI_Revolution::setNestedSketch(const ModelHighAPI_Reference& theSketch)
{
mysketch->setValue(theSketch.feature());
+
+ // To make Sketch feature execute and subfeatures execute.
+ feature()->document()->setCurrentFeature(feature(), false);
+
// to inform that the history is updated due to the sketch moved under the composite feature
if (theSketch.feature().get()) {
theSketch.feature()->document()->updateHistory(ModelAPI_Feature::group());
void FeaturesAPI_RevolutionBoolean::setNestedSketch(const ModelHighAPI_Reference& theSketch)
{
mysketch->setValue(theSketch.feature());
+
+ // To make Sketch feature execute and subfeatures execute.
+ feature()->document()->setCurrentFeature(feature(), false);
+
// to inform that the history is updated due to the sketch moved under the composite feature
if (theSketch.feature().get()) {
theSketch.feature()->document()->updateHistory(ModelAPI_Feature::group());