From 59d8d793697c191a30db1cb2e736a97aa4d950db Mon Sep 17 00:00:00 2001 From: Jeremy Tammik Date: Fri, 21 Aug 2015 12:14:18 +0200 Subject: [PATCH] version for Revit 2016 --- cs/Properties/AssemblyInfo.cs | 12 ++++++------ cs/TemplateRevitCs.csproj | 18 +++++++++--------- cs/TemplateRevitCs.vstemplate | 4 ++-- vb/AdskCommand.vb | 5 +++++ vb/My Project/AssemblyInfo.vb | 12 ++++++------ vb/TemplateRevitVb.vbproj | 18 +++++++++--------- vb/TemplateRevitVb.vstemplate | 4 ++-- 7 files changed, 39 insertions(+), 34 deletions(-) diff --git a/cs/Properties/AssemblyInfo.cs b/cs/Properties/AssemblyInfo.cs index 9b7d470..663b0fa 100644 --- a/cs/Properties/AssemblyInfo.cs +++ b/cs/Properties/AssemblyInfo.cs @@ -5,12 +5,12 @@ // 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("Revit Add-In Title")] -[assembly: AssemblyDescription( "Revit Add-In Description" )] +[assembly: AssemblyTitle("$projectname$")] +[assembly: AssemblyDescription( "Revit Add-In Description for $projectname$" )] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Autodesk Inc.")] -[assembly: AssemblyProduct( "Revit Add-In Wizard Template Application" )] -[assembly: AssemblyCopyright( "Copyright 2014 © Jeremy Tammik Autodesk Inc." )] +[assembly: AssemblyProduct( "$projectname$ Revit Add-In" )] +[assembly: AssemblyCopyright( "Copyright 2015 © Jeremy Tammik Autodesk Inc." )] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -32,5 +32,5 @@ // 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")] +[assembly: AssemblyVersion("2016.0.0.0")] +[assembly: AssemblyFileVersion("2016.0.0.0")] diff --git a/cs/TemplateRevitCs.csproj b/cs/TemplateRevitCs.csproj index 94089b9..bc1a9f5 100644 --- a/cs/TemplateRevitCs.csproj +++ b/cs/TemplateRevitCs.csproj @@ -1,4 +1,4 @@ - + @@ -27,7 +27,7 @@ prompt 4 Program - $(ProgramW6432)\Autodesk\Revit 2015\Revit.exe + $(ProgramW6432)\Autodesk\Revit 2016\Revit.exe false @@ -38,16 +38,16 @@ prompt 4 Program - $(ProgramW6432)\Autodesk\Revit 2015\Revit.exe + $(ProgramW6432)\Autodesk\Revit 2016\Revit.exe false - $(ProgramW6432)\Autodesk\Revit 2015\RevitAPI.dll + $(ProgramW6432)\Autodesk\Revit 2016\RevitAPI.dll False - $(ProgramW6432)\Autodesk\Revit 2015\RevitAPIUI.dll + $(ProgramW6432)\Autodesk\Revit 2016\RevitAPIUI.dll False @@ -62,11 +62,11 @@ - - + + - copy "$(ProjectDir)$projectname$.addin" "$(AppData)\Autodesk\REVIT\Addins\2015" -copy "$(ProjectDir)bin\debug\$projectname$.dll" "$(AppData)\Autodesk\REVIT\Addins\2015" + copy "$(ProjectDir)$projectname$.addin" "$(AppData)\Autodesk\REVIT\Addins\2016" +copy "$(ProjectDir)bin\debug\$projectname$.dll" "$(AppData)\Autodesk\REVIT\Addins\2016" diff --git a/cs/TemplateRevitCs.vstemplate b/cs/TemplateRevitCs.vstemplate index 45804ad..26a2df0 100644 --- a/cs/TemplateRevitCs.vstemplate +++ b/cs/TemplateRevitCs.vstemplate @@ -1,8 +1,8 @@ - Revit 2015 Addin - Class library template for a Revit 2015 C# add-in project + Revit 2016 Addin + Class library template for a Revit 2016 C# add-in project TemplateIcon.ico CSharp true diff --git a/vb/AdskCommand.vb b/vb/AdskCommand.vb index 9f42987..c1155fa 100644 --- a/vb/AdskCommand.vb +++ b/vb/AdskCommand.vb @@ -34,6 +34,11 @@ Public Class AdskCommand 'TODO: Add your code here + Using tx As New Transaction(doc) + tx.Start("$projectname$") + tx.Commit() + End Using + 'Must return some code Return Result.Succeeded End Function diff --git a/vb/My Project/AssemblyInfo.vb b/vb/My Project/AssemblyInfo.vb index 181de5a..b0a505e 100644 --- a/vb/My Project/AssemblyInfo.vb +++ b/vb/My Project/AssemblyInfo.vb @@ -8,11 +8,11 @@ Imports System.Runtime.InteropServices ' Review the values of the assembly attributes - - + + - - + + @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices ' by using the '*' as shown below: ' - - + + diff --git a/vb/TemplateRevitVb.vbproj b/vb/TemplateRevitVb.vbproj index e12acea..cdffde6 100644 --- a/vb/TemplateRevitVb.vbproj +++ b/vb/TemplateRevitVb.vbproj @@ -1,4 +1,4 @@ - + @@ -32,7 +32,7 @@ Program - $(ProgramW6432)\Autodesk\Revit 2015\Revit.exe + $(ProgramW6432)\Autodesk\Revit 2016\Revit.exe false 41999,42016,42017,42018,42019,42020,42021,42022,42032,42036 @@ -46,17 +46,17 @@ Program - $(ProgramW6432)\Autodesk\Revit 2015\Revit.exe + $(ProgramW6432)\Autodesk\Revit 2016\Revit.exe false 41999,42016,42017,42018,42019,42020,42021,42022,42032,42036 - $(ProgramW6432)\Autodesk\Revit 2015\RevitAPI.dll + $(ProgramW6432)\Autodesk\Revit 2016\RevitAPI.dll False - $(ProgramW6432)\Autodesk\Revit 2015\RevitAPIUI.dll + $(ProgramW6432)\Autodesk\Revit 2016\RevitAPIUI.dll False @@ -84,12 +84,12 @@ - - + + - copy "$(ProjectDir)$projectname$.addin" "$(AppData)\Autodesk\REVIT\Addins\2015" -copy "$(ProjectDir)bin\debug\$projectname$.dll" "$(AppData)\Autodesk\REVIT\Addins\2015" + copy "$(ProjectDir)$projectname$.addin" "$(AppData)\Autodesk\REVIT\Addins\2016" +copy "$(ProjectDir)bin\debug\$projectname$.dll" "$(AppData)\Autodesk\REVIT\Addins\2016" diff --git a/vb/TemplateRevitVb.vstemplate b/vb/TemplateRevitVb.vstemplate index 2acc6f4..1a818e5 100644 --- a/vb/TemplateRevitVb.vstemplate +++ b/vb/TemplateRevitVb.vstemplate @@ -1,8 +1,8 @@ - Revit 2015 Addin - Class library template for a Revit 2015 Visual Basic add-in project + Revit 2016 Addin + Class library template for a Revit 2016 Visual Basic add-in project TemplateIcon.ico VisualBasic true