# update the parameter N => number of sketch contours is changed
Param_N.setValue(4)
-Part_1_doc.setCurrentFeature(Cut_1.feature(), False)
+Part_1_doc.setCurrentFeature(None, True)
+model.do()
+Part_1_doc.setCurrentFeature(Cut_1.feature(), True)
model.end()
assert(Cut_1.result().numberOfSubs() == 4)
}
return FeaturePtr();
}
-
+//LCOV_EXCL_START
int PartSetPlugin_Part::subFeatureId(const int theIndex) const
{
ResultPartPtr aResult = std::dynamic_pointer_cast<ModelAPI_ResultPart>(firstResult());
}
return 0; // none
}
-
+//LCOV_EXCL_STOP
bool PartSetPlugin_Part::isSub(ObjectPtr theObject) const
{
ResultPartPtr aResult = std::dynamic_pointer_cast<ModelAPI_ResultPart>(firstResult());
// feature of such kind is not found
return FeaturePtr();
}
-
+// used only in GUI
+//LCOV_EXCL_START
void PartSetPlugin_Plugin::processEvent(const std::shared_ptr<Events_Message>& theMessage)
{
const Events_ID kRequestEvent =
aMsg->setState(PartSetPlugin_Remove::ID(), aDocIsPart);
return aMsg;
}
+//LCOV_EXCL_STOP