Sketcher: BSpline toolbar command support for Convert to NURBS external geometry

This commit is contained in:
Abdullah Tahiri 2017-02-19 23:39:04 +01:00 committed by wmayer
parent 4c9073eeb6
commit c1f4fd9490

View File

@ -345,6 +345,18 @@ void CmdSketcherConvertToNURB::activated(int iMsg)
nurbsized = true;
}
else if (SubNames[i].size() > 12 && SubNames[i].substr(0,12) == "ExternalEdge") {
int GeoId = - (std::atoi(SubNames[i].substr(12,4000).c_str()) + 2);
Gui::Command::doCommand(
Doc,"App.ActiveDocument.%s.ConvertToNURBS(%d) ",
selection[0].getFeatName(),GeoId);
nurbsized = true;
}
}
if(!nurbsized) {