///<summary> This gets called when when the user runs this command.</summary> public override IRhinoCommand.result RunCommand(IRhinoCommandContext context) { MRhinoView view = RhUtil.RhinoApp().ActiveView(); if (null != view) { // 1/2 of smallest subtended view angle double half_smallest_angle = 0.0; if (view.ActiveViewport().VP().GetCameraAngle(ref half_smallest_angle)) { string fov = string.Empty; RhUtil.RhinoFormatNumber(half_smallest_angle * (180.0 / OnUtil.On_PI), ref fov); RhUtil.RhinoApp().Print(string.Format("Field of view = {0} degrees.\n", fov)); } } return(IRhinoCommand.result.success); }