Table of Contents

Method AddBox

Namespace
vdWebLibrary
Assembly
JsPropertiesExtractor.dll

AddBox(object, double, double, double, double, bool, object)

Creats a box as a vdPolyface object type and returns the created object.

public object AddBox(object insertionPoint, double length, double width, double height, double rotation, bool drawit, object entities)

Parameters

insertionPoint object

The insertion point of the box as an array of [x,y,z]

length double

The length of the box

width double

The width of the box

height double

The height of the box

rotation double

The rotation of the box in radians around the Z axis and relative to insertion point

drawit bool

Defines if the vdPolyline object will be drawn.

entities object

The entities collection where the polyline will be added. This can be the entities of layout or a block.

Returns

object

A vdPolyface object

Examples

vdcanvas.AddBox([-2, -2, 0], 6, 3, 10, vdgeo.HALF_PI / 2.0, true);