protected override void OnUpdate(Command command)
{
base.OnUpdate(command);
command.IsEnabled = false;
if (Window.ActiveWindow.ActiveContext.SingleSelection as IDesignBody != null) {
command.IsEnabled = true;
return;
}
if (Window.ActiveWindow.ActiveContext.GetSelection<IDesignFace>().Count > 0)
command.IsEnabled = true;
}