Home Search

DriveWorks Pro 23
PolygonCreateBox

Send Feedback

PolygonCreateBox

Returns a new box polygon.

This function is intended to be used with the DriveWorks 3D Extrusion entity.

Syntax

PolygonCreateBox(X, Y, Width, Height)

Where:

X is the position of the left side of the box in millimeters.

Y is the position of the bottom side of the box in millimeters.

Width is the width of the box in millimeters.

Height is the height of the box in millimeters.

Examples

Example 1 - Simple solid box

Rule (Fill Paths)

PolygonCreateBox(0,0,200,150)

Result

{"0|0","200|0","200|150","0|150"}

The points for each coordinate of the box polygon are created.

Example 2 - L section

Rule (Fill Paths)

PolygonCreateBox(0,0,200,150)

Result

{"0|0","200|0","200|150","0|150"}

The points for each coordinate of the box polygon are created.

Rule (Hole Paths)

PolygonCreateBox(10,10,200,150)

Result

{"10|10","200|0","200|150","0|150"}

The points for each coordinate of the box polygon (to cut away from the Fill Path) are created.

The Hole Path box polygon is offset from the Fill Path by 10mm in the X and Y.

See Also

The following Polygon functions are also available:

PolygonCombine - Combines two or more polygons.

PolygonCreateArc - Returns a new arc polygon.

PolygonCreateBox - Returns a new box polygon.

PolygonCreateCircle - Returns a new circular polygon.

PolygonCreateRoundedBox - Returns a new rounded box polygon.

PolygonCreateThickLine - Returns a new polygon by creating the outline of a given series of points.

PolygonCreateUniformThickLine - Returns a new polygon by creating a uniform outline of a given series of points.

PolygonFromPoints - Returns a new polygon created from the given list of points.

PolygonRotate- Returns a copy of the given polygon rotated around its local origin.

PolygonScale - Returns a copy of the given polygon scaled along the X and Y axes.

PolygonSpline - Creates a polygon that forms a cardinal spline path along the given polygon's points.

PolygonTranslate - Returns a copy of the given polygon translated along the X and Y axes.