|
![]() |
Provides the same interface as Api.Automation.NavisworksApplication but within the current process.
Calls made via NavisworksApplication or command line when automating eventually call methods
on here.
Namespace: Autodesk.Navisworks.Api.ApplicationParts
Assembly: Autodesk.Navisworks.Api (in Autodesk.Navisworks.Api.dll)
Syntax
Visual Basic |
---|
Public Class ApplicationAutomation |
C# |
---|
public class ApplicationAutomation |
Visual C++ |
---|
public ref class ApplicationAutomation |
Remarks
This class provides the same interface as NavisworksApplication but within the current Navisworks process. Therefore this class can only be used by plug-ins and should never be used directly by an external Automating application.
Calls made via NavisworksApplication, or command line, when automating eventually call methods on here.
Examples

using System; using System.Collections.Generic; using System.Windows.Forms; using System.Text; //Add two new namespaces using Autodesk.Navisworks.Api; using Autodesk.Navisworks.Api.Plugins; namespace ChainPlugin1 { [PluginAttribute("ChainPlugin1.ChainPlugin1", //Plugin name "ADSK", //4 character Developer ID or GUID ToolTip = "Chain Plugins - The first plugin", //The tooltip for the item in the ribbon DisplayName = "Chained - 1")] //Display name for the Plugin in the Ribbon public class ChainPlugins1 : AddInPlugin //Derives from AddInPlugin { public override int Execute(params string[] parameters) { MessageBox.Show(Autodesk.Navisworks.Api.Application.Gui.MainWindow, "Chain Plugin 1"); Autodesk.Navisworks.Api.Application.Automation.ExecuteAddInPlugin("ChainPlugin2.ChainPlugin2.ADSK"); return 0; } } }