Skip to content

Commit

Permalink
Merge pull request #10 from ricaun-io/develop
Browse files Browse the repository at this point in the history
Version 1.3.1
  • Loading branch information
ricaun authored Aug 28, 2024
2 parents c9b690b + bd8ca98 commit 3a5ce10
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 14 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.3.1] / 2025-06-15 - 2025-08-27
- Add `AddInId` in the output. #9
- Update `AddInId` to `AddInName` in model class.

## [1.3.0] / 2025-04-05
- Update to Revit 2025
- Build `DesignAutomationConsole`.
Expand All @@ -26,6 +30,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- First Release

[vNext]: ../../compare/1.0.0...HEAD
[1.3.1]: ../../compare/1.3.0...1.3.1
[1.3.0]: ../../compare/1.2.0...1.3.0
[1.2.0]: ../../compare/1.1.0...1.2.0
[1.1.0]: ../../compare/1.0.0...1.1.0
Expand Down
Binary file modified DesignAutomationConsole/Bundle/RevitAddin.DA.Tester.bundle.zip
Binary file not shown.
12 changes: 1 addition & 11 deletions DesignAutomationConsole/DesignAutomationConsole.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ricaun.Autodesk.Forge.Oss.DesignAutomation" Version="*" />
</ItemGroup>
<!--
<ItemGroup>
<PackageReference Include="ricaun.Autodesk.Forge.Oss" Version="*" />
<PackageReference Include="Autodesk.Forge.DesignAutomation" Version="*" />
<PackageReference Include="ricaun.Autodesk.Forge.Oss.DesignAutomation" Version="*-*" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\ricaun.Forge.DesignAutomation\ricaun.Forge.DesignAutomation.csproj" />
</ItemGroup>
-->

<ItemGroup>
<None Update="Bundle\RevitAddin.DA.Tester.bundle.zip">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
Expand Down
1 change: 1 addition & 0 deletions DesignAutomationConsole/Models/OutputModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ namespace DesignAutomationConsole.Models
{
public class OutputModel
{
public string AddInName { get; set; }
public string VersionName { get; set; }
public string VersionBuild { get; set; }
public DateTime TimeStart { get; set; } = DateTime.UtcNow;
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@ public class InputModel
```C#
public class OutputModel
{
public string AddInName { get; set; }
public string VersionName { get; set; }
public string VersionBuild { get; set; }
public DateTime TimeStart { get; set; } = DateTime.UtcNow;
public string Text { get; set; }
public string Reference { get; set; }
public string FrameworkName { get; set; }
}
```

Expand Down
1 change: 1 addition & 0 deletions RevitAddin.DA.Tester/Models/OutputModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ namespace RevitAddin.DA.Tester.Models
{
public class OutputModel
{
public string AddInName { get; set; }
public string VersionName { get; set; }
public string VersionBuild { get; set; }
public DateTime TimeStart { get; set; } = DateTime.UtcNow;
Expand Down
6 changes: 4 additions & 2 deletions RevitAddin.DA.Tester/Revit/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ public class App : IExternalDBApplication
public ExternalDBApplicationResult OnStartup(ControlledApplication application)
{
Console.WriteLine("----------------------------------------");
Console.WriteLine(this.GetType().Assembly.FullName);
Console.WriteLine($"FullName: \t{this.GetType().Assembly.FullName}");
Console.WriteLine("----------------------------------------");
Console.WriteLine(this.GetType().Assembly.Location);
Console.WriteLine($"Location: {this.GetType().Assembly.Location}");
Console.WriteLine("----------------------------------------");
Console.WriteLine($"AddInName: \t{application.ActiveAddInId?.GetAddInName()}");
Console.WriteLine("----------------------------------------");

DesignAutomationBridge.DesignAutomationReadyEvent += DesignAutomationBridge_DesignAutomationReadyEvent;
Expand Down
2 changes: 1 addition & 1 deletion RevitAddin.DA.Tester/RevitAddin.DA.Tester.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

<PropertyGroup>
<PackageId>RevitAddin.DA.Tester</PackageId>
<Version>1.3.0</Version>
<Version>1.3.1</Version>
<ProjectGuid>{7C324916-9F8D-43B0-B226-DA67D2504393}</ProjectGuid>
</PropertyGroup>

Expand Down
2 changes: 2 additions & 0 deletions RevitAddin.DA.Tester/Services/DesignAutomationController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public static bool Execute(Application application, string filePath = null, Docu
var inputModel = new InputModel().Load();

var outputModel = new OutputModel();
outputModel.AddInName = application.ActiveAddInId?.GetAddInName();
outputModel.VersionBuild = application.VersionBuild;
outputModel.VersionName = application.VersionName;
outputModel.Reference = outputModel.GetType().Assembly.GetReferencedAssemblies().FirstOrDefault(e => e.Name.Contains("RevitAPI"))?.Version.ToString();
Expand All @@ -24,6 +25,7 @@ public static bool Execute(Application application, string filePath = null, Docu
outputModel.Save();

Console.WriteLine("----------------------------------------");
Console.WriteLine($"AddInName: \t{application.ActiveAddInId?.GetAddInName()}");
Console.WriteLine($"Input:\t{inputModel}");
Console.WriteLine($"Output:\t{outputModel}");
Console.WriteLine("----------------------------------------");
Expand Down

0 comments on commit 3a5ce10

Please sign in to comment.