![revit project template revit project template](https://i.ytimg.com/vi/w1vLILdGAlY/maxresdefault.jpg)
Close this window when done.ġ7.) Try to create a project using the project we just created.Ĭreate a new project from the File menu, and from the template panel, check if the project template is included. The File Explorer will open and show us fhe location of the created template. Optionally, you can attach icon and preview images for the template.ġ6.) Click on the Finish button to create the project template. Then click the Next> button.ġ5.) In the Select Template Options window, give an appropriate template name and template description. Now the necessary basic settings are done, we can already export the project to a template.ġ3.) From the File menu, select Export Template…ġ4.) Make sure the template type is set to Project Template.
REVIT PROJECT TEMPLATE UPDATE
When we do that, Visual Studio will prompt like the window show below.Ĭlick on Reload to reload and update the project file. If we do not, the assembly name will always be the name of the project template. We do this so that whenever we create a new project, the assembly name will always be the name of our project. The entry must be the same as the name of our project. csproj extension), and open the file with Notepad or any text editor you have (mine is with Notepad++).ġ1.) From the text editor, look for the line with a entry. Right-click on the project file (the one with a.
REVIT PROJECT TEMPLATE WINDOWS
Next, we need to change one property from the project, but we will not do this inside Visual Studio.ġ0.) Open Windows Explorer and locate the project. Set the Output Type to Class Library.ĩ.) Compile the project. Since we are creating a project template which is a class library, let us set it to a class library.Ĩ.) In the same window, switch to the Application tab. Let us set the output type of this project template. In addition to this, whenever we update these reference files to newer versions, we will just re-locate the folder (if in case we update the files to a version say Revit 2018, we can just change the text 2017 to 2018 and click the Update button). When we add the folder, Visual Studio will recognize the location of the reference files, and the warning icon will not show up anymore. To enable the location of these files to be always found, let us proceed to the next step.Ħ.) In the Solution Explorer window, right-click on the project name, and select Properties… and in the properties window, select the Reference Paths item.ħ.) Click the ellipsis button on the upper right hand of the window, and browse for the folder where the reference files we just added are located.Ĭlick the Add Folder button. But most of the time, these files post a warning saying that their location is not found. Try to expand the References item from the Solution Explorer window, and we can confirm that the files were added.Įverytime we create a new Revit plugin project, these files will be included in our project. Then on the Reference Manager window, click OK.
![revit project template revit project template](https://i.ytimg.com/vi/jvoeYG31ODg/maxresdefault.jpg)
Click on the Browse… button.ĥ.) Browse to your Revit application location, and select the files RevitAPI.dll and RevitAPIUI.dll. All subsequent files will be deleted automatically.ģ.) Let us add the reference files we need for creating new Revit API plugins.įrom the Solution Explorer window, right-click on References, and click Add Reference…Ĥ.) The Reference Manager window as shown below will open.
![revit project template revit project template](https://learningrevitonline.files.wordpress.com/2018/07/m1-new-project1.jpg)
There are files created here that we really do not need, so we have to remove them.Ģ.) Delete the files MainWindow.xaml, App.xaml and App.config. Initially, the new project is created like the figure below. Name your project appropriately, (in my case, it’s Revit API with WPF), and then click the OK button. On the left panel, select either C# or Visual Basic, and from the center panel, select WPF Application (see figure below). We will be starting to create a project template from a WPF application.ġ.) From the File menu, create a new project. Visual Studio does not provide a class library project template that we can use for our WOF-ed plugins. For the item template, however, the objective is to be able to create plug-in executable classes without repeatedly creating lines common to your coding workflow.
![revit project template revit project template](https://www.revit.news/wp-content/uploads/2017/07/1500574253_maxresdefault.jpg)
NET.įor the first part, we will discuss creating project and item templates that we will use to create new projects with WPF functionality. In this three-part series, I will be tackling about proper basic integration of Windows Presentation Foundation (WPF) in your Revit API plug-ins using C#.