diff --git a/CHANGELOG.md b/CHANGELOG.md index e54b58c..9e93be7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [1.0.4] / 2023-02-03 +### Updated +- Update example `Command` to `Revit Version` + ## [1.0.3] / 2023-02-02 ### Updated - Remove Version in the `Release` folder @@ -26,6 +30,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - [x] AutoUpdater [vNext]: ../../compare/1.0.0...HEAD +[1.0.4]: ../../compare/1.0.3...1.0.4 [1.0.3]: ../../compare/1.0.2...1.0.3 [1.0.2]: ../../compare/1.0.1...1.0.2 [1.0.1]: ../../compare/1.0.0...1.0.1 diff --git a/README.md b/README.md index 544f4e9..b99633b 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![License MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![Build](../../actions/workflows/Build.yml/badge.svg)](../../actions) -`RevitAddin.CommandLoader` project compiles `IExternalCommand` with Revit open using `CodeDom.Compiler` and creates a pushbutton on the Revit ribbon. +`RevitAddin.CommandLoader` project compiles `IExternalCommand` with Revit open using `CodeDom.Compiler` and creates a `PushButton` on the Revit ribbon. This project was generated by the [AppLoader](https://ricaun.com/apploader/) Revit plugin. diff --git a/RevitAddin.CommandLoader/RevitAddin.CommandLoader.csproj b/RevitAddin.CommandLoader/RevitAddin.CommandLoader.csproj index c423da7..12f915d 100644 --- a/RevitAddin.CommandLoader/RevitAddin.CommandLoader.csproj +++ b/RevitAddin.CommandLoader/RevitAddin.CommandLoader.csproj @@ -91,7 +91,7 @@ RevitAddin.CommandLoader - 1.0.3 + 1.0.4 {82070359-36DA-4441-A59D-9018B6A8B348} diff --git a/RevitAddin.CommandLoader/ViewModels/CompileViewModel.cs b/RevitAddin.CommandLoader/ViewModels/CompileViewModel.cs index 4509bcb..1c50d61 100644 --- a/RevitAddin.CommandLoader/ViewModels/CompileViewModel.cs +++ b/RevitAddin.CommandLoader/ViewModels/CompileViewModel.cs @@ -1,19 +1,21 @@ -using RevitAddin.CommandLoader.Extensions; +using Revit.Async; +using RevitAddin.CommandLoader.Extensions; +using RevitAddin.CommandLoader.Revit; +using RevitAddin.CommandLoader.Services; using RevitAddin.CommandLoader.Views; using ricaun.Revit.Mvvm; using ricaun.Revit.UI; using System; -using Revit.Async; -using System.Windows; using System.Threading.Tasks; -using RevitAddin.CommandLoader.Services; -using RevitAddin.CommandLoader.Revit; +using System.Windows; namespace RevitAddin.CommandLoader.ViewModels { public class CompileViewModel : ObservableObject { + #region Public Static public static CompileViewModel ViewModel { get; set; } = new CompileViewModel(); + #endregion #region Public Properties public string Text { get; set; } = GetText(); @@ -52,7 +54,8 @@ private async Task CompileText() EnableText = false; try { - await RevitTask.RunAsync(() => { + await RevitTask.RunAsync(() => + { try { var assembly = new CodeDomService().GenerateCode(Text); @@ -80,9 +83,9 @@ private static string GetText() namespace RevitAddin { - [DisplayName(""Command Name"")] - [Description(""This is a command tooltip"")] - [Designer("" / UIFrameworkRes;component/ribbon/images/revit.ico"")] + [DisplayName(""Revit\rVersion"")] + [Description(""Show a Window with the Revit VersionName."")] + [Designer(""/UIFrameworkRes;component/ribbon/images/revit.ico"")] [Transaction(TransactionMode.Manual)] public class Command : IExternalCommand, IExternalCommandAvailability {