|
|
Renders a 3D rectangle.
Namespace: Autodesk.Navisworks.Api
Assembly: Autodesk.Navisworks.Api (in Autodesk.Navisworks.Api.dll)
Syntax
| Visual Basic |
|---|
Public Sub Rectangle ( _ origin As Point3D, _ xVector As Vector3D, _ yVector As Vector3D, _ filled As Boolean _ ) |
| C# |
|---|
public void Rectangle( Point3D origin, Vector3D xVector, Vector3D yVector, bool filled ) |
| Visual C++ |
|---|
public: void Rectangle( Point3D^ origin, Vector3D^ xVector, Vector3D^ yVector, bool filled ) |
Parameters
- origin
- Type: Autodesk.Navisworks.Api..::..Point3D
Origin point of rectangle.
- xVector
- Type: Autodesk.Navisworks.Api..::..Vector3D
Vector representing 'x' side of rectangle.
- yVector
- Type: Autodesk.Navisworks.Api..::..Vector3D
Vector representing 'y' side of rectangle.
- filled
- Type: System..::..Boolean
Should the rectangle be filled in or an outline.
Remarks
The x and y axes do not need to be perpendicular (allows you to create a rhombus), but must not be parallel..
Exceptions
| Exception | Condition |
|---|---|
| System..::..ObjectDisposedException | Object has been Disposed |
| System..::..NotSupportedException | Object is Read-Only |
| System..::..ArgumentNullException | Argument 'origin' is null |
| System..::..ArgumentException | Argument 'origin' has been Disposed |
| System..::..ArgumentNullException | Argument 'xVector' is null |
| System..::..ArgumentException | Argument 'xVector' has been Disposed |
| System..::..ArgumentNullException | Argument 'yVector' is null |
| System..::..ArgumentException | Argument 'yVector' has been Disposed |