Create a .addin manifest file

The HelloWorld.dll file appears in the project output directory. If you want to invoke the application in Revit, create a manifest file to register it into Revit.

To create a manifest file

  1. Create a new text file in Notepad.
  2. Add the following text:

Code Region 30-10: Creating a .addin manifest file for an external command

<?xml version="1.0" encoding="utf-8" standalone="no"?>
    <RevitAddIns>
    <AddIn Type="Command">
        <Name>HelloWorld</Name>
        <FullClassName>HelloWorld.HelloWorld</FullClassName>
        <Text>HelloWorld</Text>
        <Description>Show Hello World.</Description>
        <VisibilityMode>AlwaysVisible</VisibilityMode>
        <Assembly>C:\Samples\HelloWorld\HelloWorld\bin\Debug\HelloWorld.dll</Assembly>
        <AddInId>239BD853-36E4-461f-9171-C5ACEDA4E723</AddInId>
        <VendorId>ADSK</VendorId>
        <VendorDescription>Autodesk, Inc, www.autodesk.com</VendorDescription>
      </AddIn>
    </RevitAddIns>
Note: The FullClassName includes the Root namespace found on the Application tab of the properties for the project.
  1. Modify the Assembly location to the path containing your library.
  2. Create a new GUID and put it in the AddInId field, replacing the default value. (Revit will refuse to load multiple addins with the same id, so it is good practice to create new identifiers even for tutorial addins. You can create GUIDs in Visual Studio from Tools -> Create GUID or from any of a number of online generators.)
  3. Save the file as HelloWorld.addin and put it in the following location:
    • C:\ProgramData\Autodesk\Revit\Addins{{RelYear}}\
    • Note that ProgramData may be a hidden folder. You can view it by going to View in Windows Explorer and checking the Hidden Items box.

Refer to Add-In Integration for more details using manifest files.