|
|
The active tool in a Document
Namespace: Autodesk.Navisworks.Api.DocumentParts
Assembly: Autodesk.Navisworks.Api (in Autodesk.Navisworks.Api.dll)
Syntax
| Visual Basic |
|---|
Public Class DocumentTool |
| C# |
|---|
public class DocumentTool |
| Visual C++ |
|---|
public ref class DocumentTool |
Remarks
This DocumentPart is found by accessing the property 'Document.Tool'.
The property Value identifies the current Tool that defines how mouse/keyobard input in a View is interpreted.
For more information on DocumentPart and the structure of the API see Structure of the Navisworks .NET API in the 'Developer guide'.
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; }