private void ExecuteExportRhinoCommand() { BusyIndicatorService.Run(dispatcher => { string fileName = FileDialogService.GetSaveRhinoFileName(System.IO.Path.ChangeExtension(this.OptModel.File.FileName, "3dm")); if (fileName == null) { return; } BusyIndicatorService.Notify(string.Concat("Exporting ", System.IO.Path.GetFileName(fileName), "...")); var opt = this.OptModel.File; bool scale = this.IsImportExportScaleEnabled; try { OptRhinoConverter.Converter.OptToRhino(opt, fileName, scale); } catch (Exception ex) { Messenger.Instance.Notify(new MessageBoxMessage(fileName, ex)); } }); }