Skip to content

Commit

Permalink
Update AddInId to AddInName in model class.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricaun committed Jun 16, 2024
1 parent db4f8ce commit 03557a3
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [1.3.1] / 2025-06-15
- Add `AddInId` in the output. #9
- Update `AddInId` to `AddInName` in model class.

## [1.3.0] / 2025-04-05
- Update to Revit 2025
Expand Down
Binary file modified DesignAutomationConsole/Bundle/RevitAddin.DA.Tester.bundle.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion DesignAutomationConsole/Models/OutputModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace DesignAutomationConsole.Models
{
public class OutputModel
{
public string AddInId { get; set; }
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
2 changes: 1 addition & 1 deletion RevitAddin.DA.Tester/Models/OutputModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace RevitAddin.DA.Tester.Models
{
public class OutputModel
{
public string AddInId { get; set; }
public string AddInName { get; set; }
public string VersionName { get; set; }
public string VersionBuild { get; set; }
public DateTime TimeStart { get; set; } = DateTime.UtcNow;
Expand Down
2 changes: 1 addition & 1 deletion RevitAddin.DA.Tester/Revit/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public ExternalDBApplicationResult OnStartup(ControlledApplication application)
Console.WriteLine("----------------------------------------");
Console.WriteLine($"Location: {this.GetType().Assembly.Location}");
Console.WriteLine("----------------------------------------");
Console.WriteLine($"AddInId: \t{application.ActiveAddInId?.GetAddInName()}");
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.1-alpha</Version>
<Version>1.3.1-beta</Version>
<ProjectGuid>{7C324916-9F8D-43B0-B226-DA67D2504393}</ProjectGuid>
</PropertyGroup>

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

var outputModel = new OutputModel();
outputModel.AddInId = application.ActiveAddInId?.GetAddInName();
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 @@ -25,7 +25,7 @@ public static bool Execute(Application application, string filePath = null, Docu
outputModel.Save();

Console.WriteLine("----------------------------------------");
Console.WriteLine($"AddInId: \t{application.ActiveAddInId?.GetAddInName()}");
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 03557a3

Please sign in to comment.