Create a .addin manifest file

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.

  1. To create a manifest file, 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">
            <Assembly>D:\Sample\HelloWorld\bin\Debug\HelloWorld.dll</Assembly>
            <AddInId>239BD853-36E4-461f-9171-C5ACEDA4E721</AddInId>
            <FullClassName>Class1</FullClassName>
            <Text>HelloWorld</Text>  
            <VendorId>ADSK</VendorId>
            <VendorDescription>Autodesk, www.autodesk.com</VendorDescription>
            </AddIn>
    </RevitAddIns>
    
  3. Save the file as HelloWorld.addin and put it in the following location:
    • For Windows XP - C:\Documents and Settings\All Users\Application Data\Autodesk\Revit\Addins\2012\
    • For Vista/Windows 7 - C:\ProgramData\Autodesk\Revit\Addins\2012\

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