Assembly: Document handling and some fixes

This commit is contained in:
jriegel
2014-09-22 12:24:35 +02:00
committed by Stefan Tröger
parent 15cf3387f4
commit 4d6e26e2fd
6 changed files with 108 additions and 26 deletions

View File

@@ -113,6 +113,7 @@ void CmdPartDesignBody::activated(int iMsg)
// if not, creating a part and set it up by calling the appropiated function in Workbench
PartName = getUniqueObjectName("Part");
doCommand(Doc,"App.activeDocument().Tip = App.activeDocument().addObject('App::Part','%s')",PartName.c_str());
doCommand(Doc,"App.activeDocument().ActiveObject.Label = '%s'", QObject::tr(PartName.c_str()).toStdString().c_str());
PartDesignGui::Workbench::setUpPart(dynamic_cast<App::Part *>(getDocument()->getObject(PartName.c_str())));
}else
PartName = actPart->getNameInDocument();