AddTrace Method

Creates a Trace object from an array of points.

See Also | Example


RetVal = object.AddTrace(PointsArray)


ModelSpace Collection, PaperSpace Collection, Block
The object or objects this method applies to.


Variant (array of doubles); input-only
An array of 3D WCS coordinates specifying the trace endpoints.


Trace object
The newly created Trace object.

System Variables

To set the Fill mode, use the FILLMODE system variable. The TRACEWID system variable stores the current width used for Trace objects.


The endpoints of a trace are always on the centerline and are always cut square. AutoCAD automatically calculates the correct bevels for connection to adjacent trace segments.

Traces are solid filled when the Fill mode is on. When Fill mode is off, only the outline of a trace appears.