Skip to content

Commit

Permalink
Revise revit.local.debug.tool to support version 2022 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
anshivashankar authored Apr 6, 2021
1 parent d9a3662 commit 058947b
Show file tree
Hide file tree
Showing 6 changed files with 144 additions and 4 deletions.
6 changes: 6 additions & 0 deletions DesignAutomationHandler.sln
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DesignAutomationHandler2020
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DesignAutomationHandler2021", "DesignAutomationHandler2021\DesignAutomationHandler2021.csproj", "{40965980-8504-4481-878F-F26C47C0479C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DesignAutomationHandler2022", "DesignAutomationHandler2022\DesignAutomationHandler2022.csproj", "{8C1B6869-E464-4252-9E9E-068E43553A7A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -33,6 +35,10 @@ Global
{40965980-8504-4481-878F-F26C47C0479C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{40965980-8504-4481-878F-F26C47C0479C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{40965980-8504-4481-878F-F26C47C0479C}.Release|Any CPU.Build.0 = Release|Any CPU
{8C1B6869-E464-4252-9E9E-068E43553A7A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8C1B6869-E464-4252-9E9E-068E43553A7A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8C1B6869-E464-4252-9E9E-068E43553A7A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8C1B6869-E464-4252-9E9E-068E43553A7A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
14 changes: 14 additions & 0 deletions DesignAutomationHandler2022/DesignAutomationHandler.addin
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<RevitAddIns>
<AddIn Type="Command">
<Name>DesignAutomationHandler</Name>
<Assembly>.\DesignAutomationHandler.dll</Assembly>
<AddInId>599AB1DA-AE22-4585-BA0F-E7AEEE4F0878</AddInId>
<FullClassName>DesignAutomationHandler.DesignAutomationHandlerApp</FullClassName>
<Text>DesignAutomationHandler</Text>
<VisibilityMode>AlwaysVisible</VisibilityMode>
<Description>"DesignAutomationHandler For Local Debugging of D4R"</Description>
<VendorId>Autodesk</VendorId>
<VendorDescription>Autodesk, www.autodesk.com</VendorDescription>
</AddIn>
</RevitAddIns>
79 changes: 79 additions & 0 deletions DesignAutomationHandler2022/DesignAutomationHandler2022.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{8C1B6869-E464-4252-9E9E-068E43553A7A}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DesignAutomationHandler</RootNamespace>
<AssemblyName>DesignAutomationHandler</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="DesignAutomationBridge, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Autodesk.Forge.DesignAutomation.Revit.2022.0.0\lib\net48\DesignAutomationBridge.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="RevitAPI, Version=22.0.0.0, Culture=neutral, processorArchitecture=AMD64">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Program Files\Autodesk\Revit 2022\RevitAPI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIUI, Version=22.0.0.0, Culture=neutral, processorArchitecture=AMD64">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Program Files\Autodesk\Revit 2022\RevitAPIUI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\DesignAutomationHandler.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="DesignAutomationHandler.addin">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
<SubType>Designer</SubType>
</Content>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>if exist "$(AppData)\Autodesk\REVIT\Addins\2022" copy "$(ProjectDir)*.addin" "$(AppData)\Autodesk\REVIT\Addins\2022"
if exist "$(AppData)\Autodesk\REVIT\Addins\2022" copy "$(ProjectDir)$(OutputPath)*.dll" "$(AppData)\Autodesk\REVIT\Addins\2022"</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
</PropertyGroup>
<ItemGroup>
<None Include="..\LICENSE.txt" Pack="true" PackagePath="$(PackageLicenseFile)" />
</ItemGroup>
</Project>
36 changes: 36 additions & 0 deletions DesignAutomationHandler2022/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("DesignAutomationHandler")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("DesignAutomationHandler")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("B11C8244-69F1-42D7-A1D2-98CA57A1BABC")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
5 changes: 5 additions & 0 deletions DesignAutomationHandler2022/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Autodesk.Forge.DesignAutomation.Revit" version="2022.0.0" targetFramework="net48" />
<package id="Microsoft.CSharp" version="4.5.0" targetFramework="net48" />
</packages>
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![Platforms](https://img.shields.io/badge/Plugins-Windows-lightgray.svg)
![.NET](https://img.shields.io/badge/.NET%20Framework-4.8-blue.svg)
[![Revit](https://img.shields.io/badge/Revit-2018|2019|2020|2021-lightblue.svg)](http://developer.autodesk.com/)
[![Revit](https://img.shields.io/badge/Revit-2018|2019|2020|2021|2022-lightblue.svg)](http://developer.autodesk.com/)

# Description

Expand All @@ -23,10 +23,10 @@ See [step-by-step video](https://www.youtube.com/watch?v=i0LJ9JOpKMQ)

## Compile and Load on Revit

1. Build the solution `DesignAutomationHandler`, compiling DesignAutomationHandler for Revit 2018 (`DesignAutomationHandler2018`), Revit 2019 (`DesignAutomationHandler2019`), Revit 2020 (`DesignAutomationHandler2020`) and Revit 2021 (`DesignAutomationHandler2021`)
> Design Automation for Revit currently supports Revit 2018, 2019, 2020, and 2021.
1. Build the solution `DesignAutomationHandler`, compiling DesignAutomationHandler for Revit 2018 (`DesignAutomationHandler2018`), Revit 2019 (`DesignAutomationHandler2019`), Revit 2020 (`DesignAutomationHandler2020`), Revit 2021 (`DesignAutomationHandler2021`), and Revit 2022 (`DesignAutomationHandler2022`)
> Design Automation for Revit currently supports Revit 2018, 2019, 2020, 2021, and 2022.
2. Copy/paste the `DesignAutomationHandler.addin` into the "Addins" folder `C:\ProgramData\Autodesk\Revit\Addins\XXXX\`, where `XXXX` is the Revit version (e.g. 2018, 2019, 2020, 2021) you intend to run.
2. Copy/paste the `DesignAutomationHandler.addin` into the "Addins" folder `C:\ProgramData\Autodesk\Revit\Addins\XXXX\`, where `XXXX` is the Revit version (e.g. 2018, 2019, 2020, 2021, 2022) you intend to run.

3. Copy/paste the `.addin` file of your Design Automation for Revit plugin into the same folder `C:\ProgramData\Autodesk\Revit\Addins\XXXX\`.

Expand Down

0 comments on commit 058947b

Please sign in to comment.