|
|
Renders a 3D cuboid.
Namespace: Autodesk.Navisworks.Api
Assembly: Autodesk.Navisworks.Api (in Autodesk.Navisworks.Api.dll)
Syntax
| Visual Basic |
|---|
Public Sub Cuboid ( _ origin As Point3D, _ xVector As Vector3D, _ yVector As Vector3D, _ zVector As Vector3D, _ filled As Boolean _ ) |
| C# |
|---|
public void Cuboid( Point3D origin, Vector3D xVector, Vector3D yVector, Vector3D zVector, bool filled ) |
| Visual C++ |
|---|
public: void Cuboid( Point3D^ origin, Vector3D^ xVector, Vector3D^ yVector, Vector3D^ zVector, bool filled ) |
Parameters
- origin
- Type: Autodesk.Navisworks.Api..::..Point3D
Origin point of rectangle.
- xVector
- Type: Autodesk.Navisworks.Api..::..Vector3D
Vector representing 'x' side of cuboid.
- yVector
- Type: Autodesk.Navisworks.Api..::..Vector3D
Vector representing 'y' side of cuboid.
- zVector
- Type: Autodesk.Navisworks.Api..::..Vector3D
Vector representing 'y' side of cuboid.
- filled
- Type: System..::..Boolean
Should the cuboid be filled in or an outline.
Remarks
The x, y, and z axes do not need to be perpendicular, 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 |
| System..::..ArgumentNullException | Argument 'zVector' is null |
| System..::..ArgumentException | Argument 'zVector' has been Disposed |