{
if (!mySketch) {
// find sketch that references to this feature
- int aSketches = document()->size("Construction");
+ int aSketches = document()->size(ModelAPI_Feature::group());
for(int a = 0; a < aSketches && !mySketch; a++) {
boost::shared_ptr<SketchPlugin_Sketch> aSketch = boost::
- dynamic_pointer_cast<SketchPlugin_Sketch>(document()->object("Construction", a));
+ dynamic_pointer_cast<SketchPlugin_Sketch>(document()->object(ModelAPI_Feature::group(), a));
if (aSketch) {
std::list<ObjectPtr> aList =
aSketch->data()->reflist(SketchPlugin_Sketch::FEATURES_ID())->list();