PartDesign: Adopt python interface to body group

This commit is contained in:
Stefan Tröger
2016-12-22 21:26:54 +01:00
committed by wmayer
parent b4a569e013
commit d2764a3c7a
12 changed files with 35 additions and 104 deletions

View File

@@ -151,7 +151,7 @@ void Workbench::slotNewObject(const App::DocumentObject& obj)
if ((obj.getDocument() == ActiveAppDoc) && (ActivePartObject != NULL)) {
// Add the new object to the active Body
// Note: Will this break Undo? But how else can we catch Edit->Duplicate selection?
Gui::Command::doCommand(Gui::Command::Doc,"App.activeDocument().%s.addFeature(App.activeDocument().%s)",
Gui::Command::doCommand(Gui::Command::Doc,"App.activeDocument().%s.addObject(App.activeDocument().%s)",
ActivePartObject->getNameInDocument(), obj.getNameInDocument());
}
}