///<summary> This gets called when when the user runs this command.</summary> public override IRhinoCommand.result RunCommand(IRhinoCommandContext context) { MRhinoView[] view_list = null; context.m_doc.GetViewList(ref view_list, true, false); if (null == view_list) { return(IRhinoCommand.result.failure); } foreach (MRhinoView view in view_list) { RhUtil.RhinoDollyExtentsSelected(view, true); } return(IRhinoCommand.result.success); }