private void Read3dmFile(string filePath) { UpdateFilePathBoxText(filePath); try { UpdateStatusText($"Reading {Path.GetFileName(filePath)}"); var version = File3dm.ReadArchiveVersion(filePath); if (version == 0) { MessageBox.Show($"Couldn't get Rhino version for selected file! File could be invalid or corrupt! {Environment.NewLine}" + $"File: {filePath}", "File warning", MessageBoxButtons.OK, MessageBoxIcon.Error); label_SelecedFileVersion.Invoke((MethodInvoker) delegate { label_SelecedFileVersion.Text = "Selected File Version: Unknown"; }); } else { if (!inFolderMode) { label_SelecedFileVersion.Invoke((MethodInvoker) delegate { label_SelecedFileVersion.Text = $"Selected File Version: Rhino {version.ToString().Replace("0", "")}"; }); } Models.Add(filePath); EnableConvertButton(true); UpdateStatusText("Status:"); } } catch (Exception errorMessage) { MessageBox.Show($"Error while trying to access file! Message: {Environment.NewLine}{errorMessage.Message}"); } }