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.
APP STORE
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.
The default user privilege for the store apps is Windows 7/8.1/10/11 Admin User. The installer should have elevated user privileges.
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="2024 parts">
<RuntimeRequirements OS="Win64" Platform="NAVMAN|NAVSIM" SeriesMin="Nw21" SeriesMax="Nw21" />
<ComponentEntry AppType="ManagedPlugin"ModuleName="./Contents/v21/ADSK.MyPlugin.v21.dll">
</ComponentEntry>
</Components>
<Components Description="2023 parts">
<RuntimeRequirements OS="Win64" Platform="NAVMAN|NAVSIM" SeriesMin="Nw20" SeriesMax="Nw20" />
<ComponentEntry AppType="ManagedPlugin"ModuleName="./Contents/v20/ADSK.MyPlugin.v20.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.
Trial versions are available for most Autodesk products. Download your free 30-days trial version today. You can obtain Autodesk desktop software for development use on an on-going basis by joining ADN at the Standard or Professional membership level too.
All the information and resources needed to use Autodesk cloud-based software and components in your own web and mobile applications can be found on the Autodesk Forge Developer Portal. Get easy access to Forge APIs and documentation, tutorials, GitHub samples, support and more.