|
![]() |
Standalone component that manages a Navisworks document
Namespace: Autodesk.Navisworks.Api.Controls
Assembly: Autodesk.Navisworks.Controls (in Autodesk.Navisworks.Controls.dll)
Syntax
Visual Basic |
---|
Public Class DocumentControl _ Inherits MarshalByValueComponent |
C# |
---|
public class DocumentControl : MarshalByValueComponent |
Visual C++ |
---|
public ref class DocumentControl : public MarshalByValueComponent |
Remarks
This is not the same as using a document via automation as there is not a full Navisworks application running.
Examples

//Dialog for selecting the Location of the file toolStripMenuItem1 open OpenFileDialog dlg = new OpenFileDialog(); //Ask user for file location if (dlg.ShowDialog() == DialogResult.OK) { //If the user has selected a valid location, then tell DocumentControl to open the file //As DocumentCtrl is linked to ViewControl documentControl.Document.TryOpenFile(dlg.FileName); }
Inheritance Hierarchy
System..::..Object
System.ComponentModel..::..MarshalByValueComponent
Autodesk.Navisworks.Api.Controls..::..DocumentControl
System.ComponentModel..::..MarshalByValueComponent
Autodesk.Navisworks.Api.Controls..::..DocumentControl