![]() ![]() Next, just like we discussed before we need to reference in Revit API and Revit APIUI libraries. We will call it GrimshawRibbon, but you can call it whatever you want – just remember that it’s not easy to rename the project folder structure after it was created. So let’s create a new project in Visual Studio. The easiest way is to actually just create a new project and add an existing one to it if needed. Unfortunately there isn’t an easy way to just take an existing project in Visual Studio and rename it. This was just a quick maintenance procedure to make sure that our file is named properly because next what we will do is import that file into a new Project in Visual Studio. Now, let’s just “Build it” and we can close that file. Click on Rename and type in “CurveTotalLength.cs”.On the right hand side, in our Solution Explorer I will first change the name of the CurveTotalLength cs file from Class1.cs to CurveTotalLength.cs. In this post we will cover a few things like:įirst let’s open our Visual Studio session that we worked on last week. For the sake of keeping this tutorial simple and easy to follow, I will only show you how to convert our all-ready CurveTotalLength tool to a button. Luckily for us Revit API offers a way to create our own tab in Revit and an array of different ways to add buttons to it. ![]() Doing that is a great and really fast way of adding new tools to Revit, but after a while we will realize that we just need a little more organization. In the last few posts I have outlined in great detail how to make a simple Revit Add-in using the IExternalCommand implementation. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |