|
|
The value of the active Tool within the document
Attempts to set Value to CustomToolPlugin will be ignored.
Namespace: Autodesk.Navisworks.Api.DocumentParts
Assembly: Autodesk.Navisworks.Api (in Autodesk.Navisworks.Api.dll)
Syntax
Examples
//private System.Windows.Forms.ToolStripComboBox documentTool; //Set the value from the document if (documentTool.SelectedItem != null && documentControl.Document.Tool != (Autodesk.Navisworks.Api.Tool)documentTool.SelectedItem) { documentControl.Document.Tool.Value = (Autodesk.Navisworks.Api.Tool)documentTool.SelectedItem; }
Exceptions
| Exception | Condition |
|---|---|
| System..::..InvalidOperationException | This method cannot be used with 'CustomToolPlugin', use SetCustomToolPlugin instead |