move handling of Bezier and BSpline surface creation into a common class to increase flexibility

This commit is contained in:
wmayer
2017-04-16 10:40:20 +02:00
parent 3eed50918b
commit ff34c3eece
7 changed files with 171 additions and 204 deletions

View File

@@ -173,7 +173,7 @@ void CmdSurfaceBSurf::activated(int iMsg)
std::string FeatName = getUniqueObjectName("Surface");
openCommand("Create surface");
doCommand(Doc, "App.ActiveDocument.addObject(\"Surface::BSplineSurface\",\"%s\")", FeatName.c_str());
doCommand(Doc, "App.ActiveDocument.addObject(\"Surface::SurfaceFeature\",\"%s\")", FeatName.c_str());
doCommand(Doc, "Gui.ActiveDocument.setEdit('%s',0)", FeatName.c_str());
}