Worldwide Sites
You have been detected as being from . Where applicable, you can see country-specific product information, offers, and pricing.
Keyboard ALT + g to toggle grid overlay
Autodesk® Navisworks® Manage and Autodesk® Navisworks® Simulate support Apps delivered by the Autodesk App Store. Apps can be used to add both.NET API plugins and NWcreate plugins.
Production Apps will be delivered as an MSI installer that is produced after you submit your App to (The Autodesk App Store). However, it is possible to test your App by simulating what the installer would do, and simply copying your deliverables into the correct place on disk. No registration is required. Here we describe how to produce an App that includes a .NET API plugin.
Two root folders are supported for loading Autodesk Apps. Note that it is not just Navisworks that uses these folders; all Autodesk products share them. The per-user root folder is:
Whilst the per-machine root folder is:
Apps installed in the per-user folder will only be available for that user, whereas Apps installed in the per-machine folder will be available for all users.
Inside one of the above root folders you need to create a uniquely named folder whose name ends in “.bundle”. Directly inside this folder should be a configuration file named “PackageContents.xml”. There should also be a “Contents” subfolder where you put your deliverables.
So, the minimum ‘development’ installation would have 2 files, and be along the lines of:
Notes:
The minimum ‘development’ configuration file will be along the lines of:
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<ApplicationPackage >
<Components Description="2022 parts">
<RuntimeRequirements OS="Win64" Platform="NAVMAN|NAVSIM" SeriesMin="Nw19" SeriesMax="Nw19" />
<ComponentEntry AppType="ManagedPlugin"ModuleName="./Contents/v18/ADSK.MyPlugin.v19.dll">
</ComponentEntry>
</Components>
<Components Description="2021 parts">
<RuntimeRequirements OS="Win64" Platform="NAVMAN|NAVSIM" SeriesMin="Nw18" SeriesMax="Nw18" />
<ComponentEntry AppType="ManagedPlugin"ModuleName="./Contents/v17/ADSK.MyPlugin.v18.dll">
</Components>
</ApplicationPackage>
This example specifies a single ‘Component’:
Notes:
In this example the DLL pointed to by ModuleName is a managed .NET assembly. This could be written as a C# ‘Class Library’ and could contain a basic “Hello World” AddInPlugin as defined in the following code.
using Autodes.Navisworks.Api.Plugins;
...
[PluginAttribute("MyPlugin", "ADSK", DisplayName = "Myplugin : Hello World")]
[AddInPluginAttribute(AddInLocation.AddIn)]
public class Myplugin : AddInPlugin
{
public override int Execute(params string[] parameters)
{
MessageBox.Show("hello World");
return 0;
}
}
...
Notes:
Components can also specify that the DLL is an NWcreate style ‘File loader’. To do this use AppType="NativeLoader".
The ADN team is here to help you be a successful publisher on the Autodesk App Store. We’ll do whatever we can do to help you. You are welcome to email appsubmissions@autodesk.com if you have any further questions after reviewing these guidelines and the other documentation on www.autodesk.com/developapps.
Thank you for participating on the Autodesk App Store.
For reference of those developers who want to pop out F1 help with the plugin: currently, the way is to hook up F1 by Windows API to display your own help page.