-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from ricaun-io/develop
Update To 1.1.1
- Loading branch information
Showing
11 changed files
with
373 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
using System; | ||
using System.Windows.Markup; | ||
|
||
[assembly: XmlnsDefinition("http://ricaun.com/example", "ricaun.Example")] | ||
[assembly: XmlnsPrefix("http://ricaun.com/example", "r")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using Autodesk.Revit.DB; | ||
using Autodesk.Revit.UI; | ||
using System; | ||
|
||
namespace ricaun.Nuke.RevitAddin.Example.Revit | ||
{ | ||
public class App : IExternalApplication | ||
{ | ||
public Result OnStartup(UIControlledApplication application) | ||
{ | ||
return Result.Succeeded; | ||
} | ||
|
||
public Result OnShutdown(UIControlledApplication application) | ||
{ | ||
return Result.Succeeded; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Autodesk.Revit.Attributes; | ||
using Autodesk.Revit.DB; | ||
using Autodesk.Revit.UI; | ||
using System.Xaml; | ||
using System; | ||
|
||
namespace ricaun.Nuke.RevitAddin.Example.Revit.Commands | ||
{ | ||
[Transaction(TransactionMode.Manual)] | ||
public class Command : IExternalCommand | ||
{ | ||
public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elementSet) | ||
{ | ||
UIApplication uiapp = commandData.Application; | ||
|
||
_ = typeof(AmbientPropertyValue).Assembly; | ||
|
||
return Result.Succeeded; | ||
} | ||
} | ||
} |
127 changes: 127 additions & 0 deletions
127
ricaun.Nuke.RevitAddin.Example/ricaun.Nuke.RevitAddin.Example.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net46</TargetFramework> | ||
<OutputType>Library</OutputType> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<UseWPF>true</UseWPF> | ||
<LangVersion>9</LangVersion> | ||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> | ||
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch> | ||
<Configurations>Debug; Release</Configurations> | ||
</PropertyGroup> | ||
|
||
<!-- RevitVersion --> | ||
<Choose> | ||
<When Condition="$(Configuration.Contains('2017'))"> | ||
<PropertyGroup> | ||
<RevitVersion>2017</RevitVersion> | ||
<TargetFramework>net46</TargetFramework> | ||
</PropertyGroup> | ||
</When> | ||
<When Condition="$(Configuration.Contains('2018'))"> | ||
<PropertyGroup> | ||
<RevitVersion>2018</RevitVersion> | ||
<TargetFramework>net46</TargetFramework> | ||
</PropertyGroup> | ||
</When> | ||
<When Condition="$(Configuration.Contains('2019'))"> | ||
<PropertyGroup> | ||
<RevitVersion>2019</RevitVersion> | ||
<TargetFramework>net47</TargetFramework> | ||
</PropertyGroup> | ||
</When> | ||
<When Condition="$(Configuration.Contains('2020'))"> | ||
<PropertyGroup> | ||
<RevitVersion>2020</RevitVersion> | ||
<TargetFramework>net47</TargetFramework> | ||
</PropertyGroup> | ||
</When> | ||
<When Condition="$(Configuration.Contains('2021'))"> | ||
<PropertyGroup> | ||
<RevitVersion>2021</RevitVersion> | ||
<TargetFramework>net48</TargetFramework> | ||
</PropertyGroup> | ||
</When> | ||
<When Condition="$(Configuration.Contains('2022'))"> | ||
<PropertyGroup> | ||
<RevitVersion>2022</RevitVersion> | ||
<TargetFramework>net48</TargetFramework> | ||
</PropertyGroup> | ||
</When> | ||
<Otherwise> | ||
<PropertyGroup> | ||
<RevitVersion>2017</RevitVersion> | ||
<TargetFramework>net46</TargetFramework> | ||
</PropertyGroup> | ||
</Otherwise> | ||
</Choose> | ||
|
||
<!-- Release --> | ||
<PropertyGroup Condition="!$(Configuration.Contains('Debug'))"> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\$(RevitVersion)</OutputPath> | ||
<DefineConstants>Revit$(RevitVersion)</DefineConstants> | ||
<NoWarn>MSB3052</NoWarn> | ||
<DebugType>None</DebugType> | ||
</PropertyGroup> | ||
|
||
<!-- Debug --> | ||
<PropertyGroup Condition="$(Configuration.Contains('Debug'))"> | ||
<DebugSymbols>true</DebugSymbols> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE;Revit$(RevitVersion)</DefineConstants> | ||
<DebugType>Full</DebugType> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<PackageId>ricaun.Nuke.RevitAddin.Example</PackageId> | ||
<Version>1.0.0</Version> | ||
<ProjectGuid>{a030741a-2fd6-48c3-9f92-3ab9f35dd17a}</ProjectGuid> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<PackageAssemblyVersion></PackageAssemblyVersion> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="$(Configuration.Contains('Debug'))"> | ||
<Revision>$([System.DateTime]::Now.ToString('ffff'))</Revision> | ||
<PackageAssemblyVersion>.Dev.$(Version).$(Revision)</PackageAssemblyVersion> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<Company>ricaun</Company> | ||
<Authors>Luiz Henrique Cassettari</Authors> | ||
<Description>Revit Add-In Description for $(PackageId).</Description> | ||
<CopyrightYears>$([System.DateTime]::Now.ToString('yyyy'))</CopyrightYears> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<AssemblyName>$(PackageId)$(PackageAssemblyVersion)</AssemblyName> | ||
<Product>$(PackageId)</Product> | ||
<Copyright>Copyright © $(CopyrightYears) $(Company)</Copyright> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="Revit\App.cs" /> | ||
<None Include="Revit\Commands\Command.cs" /> | ||
</ItemGroup> | ||
|
||
<!-- Fody --> | ||
<ItemGroup> | ||
<PackageReference Include="PropertyChanged.Fody" Version="3.4.0" IncludeAssets="compile; build" PrivateAssets="all" /> | ||
</ItemGroup> | ||
<PropertyGroup> | ||
<WeaverConfiguration > | ||
<Weavers> | ||
<PropertyChanged/> | ||
</Weavers> | ||
</WeaverConfiguration> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" IncludeAssets="build; compile" PrivateAssets="All" /> | ||
<PackageReference Include="Revit_All_Main_Versions_API_x64" Version="$(RevitVersion).*" IncludeAssets="build; compile" PrivateAssets="All" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.