Skip to content

Commit

Permalink
Merge pull request #14 from ricaun-io/develop
Browse files Browse the repository at this point in the history
Version 1.5.0
  • Loading branch information
ricaun authored Jan 22, 2025
2 parents e6236eb + 6079749 commit f4dccb0
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 258 deletions.
6 changes: 3 additions & 3 deletions Build/.nuke/build.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,11 @@
"NewVersions": {
"type": "boolean"
},
"NugetApiKey": {
"NuGetApiKey": {
"type": "string",
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
},
"NugetApiUrl": {
"NuGetApiUrl": {
"type": "string",
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
},
Expand Down Expand Up @@ -295,7 +295,7 @@
"type": "string",
"description": "Path to a solution file that is automatically loaded"
},
"UnlistNuget": {
"UnlistNuGet": {
"type": "boolean"
},
"VendorDescription": {
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ 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.5.0] / 2025-01-22
### Features
- Add `ricaun.Revit.DA` to fix issues. (Fix: #7) (Fix: #9)
### Updated
- Delete `Revit.DesignApplication` project.

## [1.4.2] / 2025-01-16
### Features
- Add `ApplicationExtensions` to check `InAddInContext` and `InEventContext`.
Expand Down Expand Up @@ -54,6 +60,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- First Release

[vNext]: ../../compare/1.0.0...HEAD
[1.5.0]: ../../compare/1.4.2...1.5.0
[1.4.2]: ../../compare/1.4.1...1.4.2
[1.4.1]: ../../compare/1.4.0...1.4.1
[1.4.0]: ../../compare/1.3.1...1.4.0
Expand Down
Binary file modified DesignAutomationConsole/Bundle/RevitAddin.DA.Tester.bundle.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<Version>1.4.2</Version>
<Version>1.5.0</Version>
</PropertyGroup>
</Project>
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ public class OutputModel
}
```

## References

This project uses the following libraries:
* [ricaun.Revit.DA](https://github.com/ricaun-io/ricaun.Revit.DA) - Design Automation for Revit library utility.
* [Autodesk.Forge.Oss.DesignAutomation](https://github.com/ricaun-io/forge-api-dotnet-oss.design.automation) - Run Design Automation with OSS library in C#.

## Installation

* Download bundle version [RevitAddin.DA.Tester.bundle.zip](../../releases/latest/download/RevitAddin.DA.Tester.bundle.zip)
Expand Down
74 changes: 0 additions & 74 deletions Revit.DesignApplication/DesignApplication.cs

This file was deleted.

87 changes: 0 additions & 87 deletions Revit.DesignApplication/DesignApplicationLoader.cs

This file was deleted.

10 changes: 0 additions & 10 deletions Revit.DesignApplication/IDesignAutomation.cs

This file was deleted.

66 changes: 0 additions & 66 deletions Revit.DesignApplication/Revit.DesignApplication.csproj

This file was deleted.

6 changes: 0 additions & 6 deletions RevitAddin.DA.Tester.sln
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution", "Solution", "{64
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DesignAutomationConsole", "DesignAutomationConsole\DesignAutomationConsole.csproj", "{7F41BE81-4EFB-4FAC-8563-B5EDAEA9F44B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Revit.DesignApplication", "Revit.DesignApplication\Revit.DesignApplication.csproj", "{0966B1C7-6ECE-44D0-A71B-7C26EB598BFF}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -35,10 +33,6 @@ Global
{7F41BE81-4EFB-4FAC-8563-B5EDAEA9F44B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7F41BE81-4EFB-4FAC-8563-B5EDAEA9F44B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7F41BE81-4EFB-4FAC-8563-B5EDAEA9F44B}.Release|Any CPU.Build.0 = Release|Any CPU
{0966B1C7-6ECE-44D0-A71B-7C26EB598BFF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0966B1C7-6ECE-44D0-A71B-7C26EB598BFF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0966B1C7-6ECE-44D0-A71B-7C26EB598BFF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0966B1C7-6ECE-44D0-A71B-7C26EB598BFF}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
10 changes: 3 additions & 7 deletions RevitAddin.DA.Tester/Revit/App.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Autodesk.Revit.ApplicationServices;
using Autodesk.Revit.DB;
using Revit.DesignApplication;
using ricaun.Revit.DA;
using RevitAddin.DA.Tester.Services;
using System;

Expand All @@ -16,9 +16,9 @@ public override void OnStartup()
Console.WriteLine("----------------------------------------");
Console.WriteLine($"Location: {this.GetType().Assembly.Location}");
Console.WriteLine("----------------------------------------");
Console.WriteLine($"AddInName: \t{Application.ActiveAddInId?.GetAddInName()}");
Console.WriteLine($"AddInName: \t{ControlledApplication.ActiveAddInId?.GetAddInName()}");
Console.WriteLine("----------------------------------------");
Application.ApplicationInitialized += Application_ApplicationInitialized;
ControlledApplication.ApplicationInitialized += Application_ApplicationInitialized;
}

private void Application_ApplicationInitialized(object sender, Autodesk.Revit.DB.Events.ApplicationInitializedEventArgs e)
Expand All @@ -27,10 +27,6 @@ private void Application_ApplicationInitialized(object sender, Autodesk.Revit.DB
AddInName = application.ActiveAddInId?.GetAddInName();
}

public override void OnShutdown()
{

}
public override bool Execute(Application application, string filePath, Document document)
{
return new DesignAutomationController().Execute(application, filePath, document);
Expand Down
5 changes: 1 addition & 4 deletions RevitAddin.DA.Tester/RevitAddin.DA.Tester.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,11 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="ricaun.Revit.DA" Version="*" />
<PackageReference Include="ricaun.Revit.DB.Shape" Version="*" />
<PackageReference Include="Autodesk.Forge.DesignAutomation.Revit" Version="$(RevitVersion).*" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Revit.DesignApplication\Revit.DesignApplication.csproj" />
</ItemGroup>

<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
Expand Down

0 comments on commit f4dccb0

Please sign in to comment.