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
|
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>
|
Refer to Add-in Integration for more details using manifest files.