Skip to content

Commit

Permalink
Merge pull request #4 from ricaun-io/develop
Browse files Browse the repository at this point in the history
Version 1.0.4
  • Loading branch information
ricaun authored Feb 3, 2023
2 parents 7740b1d + 2425d33 commit 50d9e23
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 11 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion RevitAddin.CommandLoader/RevitAddin.CommandLoader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@

<PropertyGroup>
<PackageId>RevitAddin.CommandLoader</PackageId>
<Version>1.0.3</Version>
<Version>1.0.4</Version>
<ProjectGuid>{82070359-36DA-4441-A59D-9018B6A8B348}</ProjectGuid>
</PropertyGroup>

Expand Down
21 changes: 12 additions & 9 deletions RevitAddin.CommandLoader/ViewModels/CompileViewModel.cs
Original file line number Diff line number Diff line change
@@ -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();
Expand Down Expand Up @@ -52,7 +54,8 @@ private async Task CompileText()
EnableText = false;
try
{
await RevitTask.RunAsync(() => {
await RevitTask.RunAsync(() =>
{
try
{
var assembly = new CodeDomService().GenerateCode(Text);
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit 50d9e23

Please sign in to comment.