void SketchAPI_Sketch::setPlane(const ModelHighAPI_Selection & thePlane,
bool theRemoveExternalDependency)
{
- std::shared_ptr<SketchPlugin_Sketch> aSketch =
- std::dynamic_pointer_cast<SketchPlugin_Sketch>(feature());
+ FeaturePtr aSketch = feature();
DocumentPtr aDoc = aSketch->document();
bool useVisible = false;