set the cloned shape the tip of the created body

This commit is contained in:
wmayer
2018-10-16 19:39:07 +02:00
parent 4f56186d1b
commit 058211148f

View File

@@ -340,6 +340,10 @@ void CmdPartDesignClone::activated(int iMsg)
doCommand(Command::Doc,"App.ActiveDocument.ActiveObject.setEditorMode('Placement',0)");
doCommand(Command::Doc,"App.ActiveDocument.%s.Group = [App.ActiveDocument.%s]",
BodyName.c_str(), FeatName.c_str());
// Set the tip of the body
doCommand(Command::Doc,"App.ActiveDocument.%s.Tip = App.ActiveDocument.%s",
BodyName.c_str(), FeatName.c_str());
updateActive();
doCommand(Command::Doc,"App.ActiveDocument.ActiveObject.ViewObject.DiffuseColor = App.ActiveDocument.%s.ViewObject.DiffuseColor",
objs.front()->getNameInDocument());