Skip to content

Commit

Permalink
2019 Additions
Browse files Browse the repository at this point in the history
Addition of Visual Studio files for Revit 2019 release. Updated Installer to include 2019 as well.
  • Loading branch information
classicJohn committed Sep 27, 2018
1 parent 9c76865 commit 20ac84e
Show file tree
Hide file tree
Showing 950 changed files with 169,031 additions and 606 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,12 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="PresentationCore" />
<Reference Include="RevitAPI, Version=2011.0.0.0, Culture=neutral, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Program Files\Autodesk\Revit 2015\RevitAPI.dll</HintPath>
<Reference Include="RevitAPI">
<HintPath>C:\Program Files\Autodesk\Revit 2018\RevitAPI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIUI, Version=2011.0.0.0, Culture=neutral, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Program Files\Autodesk\Revit 2015\RevitAPIUI.dll</HintPath>
<Reference Include="RevitAPIUI">
<HintPath>C:\Program Files\Autodesk\Revit 2018\RevitAPIUI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
Expand Down Expand Up @@ -108,12 +106,6 @@
<DependentUpon>form_Main.vb</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\03 - Subscription\Case.Lic\Case.Lic\Case.Lic.vbproj">
<Project>{7AC4A9CB-0628-4E27-89DB-8B0D8C0D2E35}</Project>
<Name>Case.Lic</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
<PropertyGroup>
<PostBuildEvent>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Expand All @@ -12,11 +12,12 @@
<RootNamespace>Case.FreeBenchmarking</RootNamespace>
<FileAlignment>512</FileAlignment>
<MyType>Windows</MyType>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
<OptionExplicit>On</OptionExplicit>
<OptionCompare>Binary</OptionCompare>
<OptionStrict>Off</OptionStrict>
<OptionInfer>On</OptionInfer>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -28,6 +29,7 @@
<NoWarn>42017,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
<StartAction>Program</StartAction>
<StartProgram>C:\Program Files\Autodesk\Revit 2018\Revit.exe</StartProgram>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand All @@ -39,6 +41,7 @@
<NoWarn>42017,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
<StartAction>Program</StartAction>
<StartProgram>C:\Program Files\Autodesk\Revit 2018\Revit.exe</StartProgram>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<AssemblyName>Case.FreeBenchmarking</AssemblyName>
Expand Down Expand Up @@ -108,12 +111,6 @@
<DependentUpon>form_Main.vb</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\03 - Subscription\Case.Lic\Case.Lic\Case.Lic.vbproj">
<Project>{7AC4A9CB-0628-4E27-89DB-8B0D8C0D2E35}</Project>
<Name>Case.Lic</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
<PropertyGroup>
<PostBuildEvent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ Public Class cmd
Try

' Version
If Not commandData.Application.Application.VersionName.Contains("2014") Then
If Not commandData.Application.Application.VersionName.Contains("2018") Then

' Failure
message = "This Add-In was built for Revit 2014, please contact CASE for assistance..."
message = "This Add-In was built for Revit 2018, please contact CASE for assistance..."
Return Result.Failed

End If
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Public Class clsAutomationTest

Try

Dim m_level As Level = _s.Doc.Create.NewLevel(i)
Dim m_level As Level = Level.Create(_s.Doc,i)
m_level.Name = Environment.UserName & " Level " & i.ToString
_s.GetLevels()

Expand Down Expand Up @@ -72,10 +72,10 @@ Public Class clsAutomationTest
Dim pt2 As New XYZ(0, 9, 0)
Dim pt3 As New XYZ(9, 9, 0)
Dim pt4 As New XYZ(9, 0, 0)
Dim m_line1 As Line = _s.CommandData.Application.Application.Create.NewLine(pt1, pt2, True)
Dim m_line2 As Line = _s.CommandData.Application.Application.Create.NewLine(pt2, pt3, True)
Dim m_line3 As Line = _s.CommandData.Application.Application.Create.NewLine(pt3, pt4, True)
Dim m_line4 As Line = _s.CommandData.Application.Application.Create.NewLine(pt4, pt1, True)
Dim m_line1 As Line = Line.CreateBound(pt1, pt2)
Dim m_line2 As Line = Line.CreateBound(pt2, pt3)
Dim m_line3 As Line = Line.CreateBound(pt3, pt4)
Dim m_line4 As Line = Line.CreateBound(pt4, pt1)

' First Wall type
Dim m_wt As WallType = _s.FirstWallType
Expand All @@ -90,13 +90,13 @@ Public Class clsAutomationTest
If Not m_wt Is Nothing And Not m_level Is Nothing Then

' Create the Walls and Room
Dim w As Wall = _s.Doc.Create.NewWall(m_line1, m_wt, m_level, 10, m_level.Elevation, False, False)
Dim w As Wall = Wall.Create(_s.Doc,m_line1,m_wt.Id,m_level.Id,10.0,m_level.Elevation,False,false)
m_elements1.Add(w.Id)
w = _s.Doc.Create.NewWall(m_line2, m_wt, m_level, 10, m_level.Elevation, False, False)
w = Wall.Create(_s.Doc,m_line2,m_wt.Id,m_level.Id,10.0,m_level.Elevation,False,false)
m_elements1.Add(w.Id)
w = _s.Doc.Create.NewWall(m_line3, m_wt, m_level, 10, m_level.Elevation, False, False)
w = Wall.Create(_s.Doc,m_line3,m_wt.Id,m_level.Id,10.0,m_level.Elevation,False,false)
m_elements1.Add(w.Id)
w = _s.Doc.Create.NewWall(m_line4, m_wt, m_level, 10, m_level.Elevation, False, False)
w = Wall.Create(_s.Doc,m_line4,m_wt.Id,m_level.Id,10.0,m_level.Elevation,False,false)
m_elements1.Add(w.Id)

' Place Room
Expand Down Expand Up @@ -158,7 +158,7 @@ Public Class clsAutomationTest
' Group the Collection
Dim m_eset As New ElementSet
For Each x In m_elements1
m_eset.Insert(_s.Doc.Element(x))
m_eset.Insert(_s.Doc.GetElement(x))
Next

' Group It
Expand Down
41 changes: 17 additions & 24 deletions 2018/Case.Subs.RoomsToMass/Case.Subs.RoomsToMass.sln
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Case.Subs.RoomsToMass", "Case.Subs.RoomsToMass\Case.Subs.RoomsToMass.vbproj", "{F3413874-FD92-4F33-B1DB-541B26C1CC62}"
EndProject
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Case.Lic", "..\..\Case.Lic\Case.Lic\Case.Lic.vbproj", "{7AC4A9CB-0628-4E27-89DB-8B0D8C0D2E35}"
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2027
MinimumVisualStudioVersion = 10.0.40219.1
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Case.Subs.RoomsToMass", "Case.Subs.RoomsToMass\Case.Subs.RoomsToMass.vbproj", "{B999792D-9486-46F8-90A5-39D8804D2577}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -15,28 +15,21 @@ Global
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F3413874-FD92-4F33-B1DB-541B26C1CC62}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F3413874-FD92-4F33-B1DB-541B26C1CC62}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F3413874-FD92-4F33-B1DB-541B26C1CC62}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{F3413874-FD92-4F33-B1DB-541B26C1CC62}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{F3413874-FD92-4F33-B1DB-541B26C1CC62}.Debug|x86.ActiveCfg = Debug|Any CPU
{F3413874-FD92-4F33-B1DB-541B26C1CC62}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F3413874-FD92-4F33-B1DB-541B26C1CC62}.Release|Any CPU.Build.0 = Release|Any CPU
{F3413874-FD92-4F33-B1DB-541B26C1CC62}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{F3413874-FD92-4F33-B1DB-541B26C1CC62}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{F3413874-FD92-4F33-B1DB-541B26C1CC62}.Release|x86.ActiveCfg = Release|Any CPU
{7AC4A9CB-0628-4E27-89DB-8B0D8C0D2E35}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7AC4A9CB-0628-4E27-89DB-8B0D8C0D2E35}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7AC4A9CB-0628-4E27-89DB-8B0D8C0D2E35}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{7AC4A9CB-0628-4E27-89DB-8B0D8C0D2E35}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{7AC4A9CB-0628-4E27-89DB-8B0D8C0D2E35}.Debug|x86.ActiveCfg = Debug|Any CPU
{7AC4A9CB-0628-4E27-89DB-8B0D8C0D2E35}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7AC4A9CB-0628-4E27-89DB-8B0D8C0D2E35}.Release|Any CPU.Build.0 = Release|Any CPU
{7AC4A9CB-0628-4E27-89DB-8B0D8C0D2E35}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{7AC4A9CB-0628-4E27-89DB-8B0D8C0D2E35}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{7AC4A9CB-0628-4E27-89DB-8B0D8C0D2E35}.Release|x86.ActiveCfg = Release|Any CPU
{B999792D-9486-46F8-90A5-39D8804D2577}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B999792D-9486-46F8-90A5-39D8804D2577}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B999792D-9486-46F8-90A5-39D8804D2577}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{B999792D-9486-46F8-90A5-39D8804D2577}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{B999792D-9486-46F8-90A5-39D8804D2577}.Debug|x86.ActiveCfg = Debug|Any CPU
{B999792D-9486-46F8-90A5-39D8804D2577}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B999792D-9486-46F8-90A5-39D8804D2577}.Release|Any CPU.Build.0 = Release|Any CPU
{B999792D-9486-46F8-90A5-39D8804D2577}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{B999792D-9486-46F8-90A5-39D8804D2577}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{B999792D-9486-46F8-90A5-39D8804D2577}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {AAB5AA68-EDC1-4394-B19C-B0B6A99B239C}
EndGlobalSection
EndGlobal
Loading

0 comments on commit 20ac84e

Please sign in to comment.