In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
How to build the Revit secondary development environment platform, I believe that many inexperienced people do not know what to do about it. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
If you want to make use of the Revit API development environment, you need to build the platform first. The platform environment is divided into two parts. The first part is the Revit platform and the second part is the VS platform. This can be done with the tools we mentioned last time, mainly in the following steps:
First, Revit platform.
There are two main tools for Revit platform to install, one is external tools and the other is Revitlookup. External tools are used to load and debug programs we have written, while revitlookup is used to view element categories and attributes. You may not quite understand here, it doesn't matter, the specific application later said. )
Installation of RevitSDK.
Double-click the SDK installation package to complete the installation, but if you change the installation location and conditions, the installation will fail (it will not remind you, but you will not see the external tool plug-in when you open revit, indicating that you have failed to install)
As shown in the figure, the editor changed the installation path so that external tools could not be installed correctly.
Solution:
Open the SDK path you installed → to copy all the files to C:\ ProgramData\ Autodesk\ Revit\ Addins\ 2016 path → open the two addin files (red box is the addin file type), open the right-click notepad to open → [TARGEDIR] should fill in the path of the dll file, as shown in the figure.
The red box in the picture is the addin file.
The red box [] is bracketed with the content of the path to be replaced.
All [TARGEDIR] should be replaced with the dll file path, as shown above (editor here has two paths because both paths have this file, which does not affect the use).
When the replacement is complete, opening revit will show external tools in the add-in, as shown in the figure.
Installation of 2.LookUP
(lookup in SDK, if there is no official account to reply to lookup to get the download link) the first step is to copy the addin file of lookup to C:\ ProgramData\ Autodesk\ Revit\ Addins\ 2016 to open the addin file with notepad, and replace the path (you may not find the dll file of lookup at this time). The solution is as follows:
Use the installed vs2015 to open the sln file of lookup, click the generate button, and the display box at the bottom of the interface will show the path of the newly generated dll file as follows: F:\ review secondary development tool has its own\ RevitLookup-master\ RevitLookup-master\ CS\ bin\ Debug\ RevitLookup.dll
Generated dll file path
Replace the address, click Save, and start revit.
The generated Revit Lookup tool.
Second, VS platform.
1. Open VS to create a new class library project
two。 Find the reference in the project, right-click to open the menu bar and click to add a reference (here you need to reference revit api)
3. Locate the dll file you want to reference and add a reference.
Click Browse, and the two files RevitAPI.dll and RevitAPIUI.dll to be referenced can be found in the installation location of revit.
In this way, we have completed the reference to RevitAPI, and we can call the various categories, methods, and properties of RevitAPI in VS.
After reading the above, have you mastered the method of how to build the Revit secondary development environment platform? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.