|
|
Renders a 2D line in the XY plane at the current depth.
Namespace: Autodesk.Navisworks.Api
Assembly: Autodesk.Navisworks.Api (in Autodesk.Navisworks.Api.dll)
Syntax
| Visual Basic |
|---|
Public Sub Line ( _ point1 As Point2D, _ point2 As Point2D _ ) |
| C# |
|---|
public void Line( Point2D point1, Point2D point2 ) |
| Visual C++ |
|---|
public: void Line( Point2D^ point1, Point2D^ point2 ) |
Parameters
- point1
- Type: Autodesk.Navisworks.Api..::..Point2D
First point of line.
- point2
- Type: Autodesk.Navisworks.Api..::..Point2D
Second point of line.
Exceptions
| Exception | Condition |
|---|---|
| System..::..ObjectDisposedException | Object has been Disposed |
| System..::..NotSupportedException | Object is Read-Only |
| System..::..ArgumentNullException | Argument 'point1' is null |
| System..::..ArgumentException | Argument 'point1' has been Disposed |
| System..::..ArgumentNullException | Argument 'point2' is null |
| System..::..ArgumentException | Argument 'point2' has been Disposed |