一、本节课程
C# Revit二次开发基础/核心编程---开发环境配置
二、本节要讲解的知识点
如何配置Revit二次开发的环境,创建Hello World应用程序
- 具体内容
- 安装Revit 2018: AUTODESK官方网站,下载。https://www.autodesk.com.cn/products/revit/free-trial
- 安装VS2015及其更新:从微软的官方网站,下载。
https://visualstudio.microsoft.com/zh-hans/vs/older-downloads/
VS的更新 http://download.microsoft.com/download/9/4/f/94f9f500-fe47-4a4e-be00-85350e2cf87a/vs2015.3%20rc.exe
- Autodesk官方的Revit API下载:
https://www.autodesk.com/developer-network/platform-technologies/revit
2018版本的更新一点SDK:
http://download.autodesk.com/us/revit-sdk/REVIT_2018_2_SDK.msi
Documentation:Learn more about Revit's .NET API through Revit's API
The SDK is included in every Revit product. There are two ways to install the Revit SDK:
- From the main page of the Revit installer, click “Install Tools and Utilities” and choose “Revit Software Development Kit”.
- Alternatively, you can also find the SDK in the extraction folder, under: <extraction folder>\support\SDK\RevitSDK.exe
You can also download the updated Revit SDK here:
- Revit 2019 SDK (Update April 27, 2018)
- Revit 2018.2 SDK (Update December 6, 2017)
- Revit 2018.1 SDK (Update August 01, 2017)
- Revit 2018 SDK (Update May 19, 2017)
- Revit 2017.1 SDK (Update Oct 19, 2016)
- Revit 2017 SDK (Update June 23, 2016)
- These Revit SDKs are subject to the license agreement that's displayed for acceptance during their installation process
The Revit LookUp Tool can help debug the Revit Database and understand the elements and its parameters. The source code can be found at our GitHub repository.
https://github.com/jeremytammik/RevitLookup
4、revit2018的addinmanager安装
Revit二次开发 _AddInManager 安装步骤:
(1)已装Revit2018
(2)安装Revit SDK2018
(3)打开SDK2018 文件夹中的 Add-In Manager,找到 Autodesk.AddInManager.addin 文件,然后复制该文件到Revit 2018安装文件Addins中。
需要将.addin文件放置到C:\ProgramData\Autodesk\Revit\Addins\2018,这是一个隐藏文件夹,如果没有显示的话可以使用文件夹选项的“设置”将隐藏文件夹显示。