TextColor Property

Specifies the color of the text for dimension and tolerance objects.

See Also | Example

Signature

object.TextColor

object

Dim3PointAngular, DimAligned, DimAngular, DimArcLength, DimDiametric, DimOrdinate, DimRadial, DimRadialLarge, DimRotated, MLeaderStyle, Tolerance
The object or objects this property applies to.

TextColor

acColor enum; read-write
Use a color index number from 0 to 256, or one of the constants listed here:

acByBlock

acByLayer

acRed

acYellow

acGreen

acCyan

acBlue

acMagenta

acWhite

System variables

This property overrides the value of the DIMCLRT system variable for the given dimension or tolerance object.

Remarks

Colors can be set and read as numeric index values ranging from 0 to 256. Constants have been provided for the standard seven colors, as well as the BYBLOCK and BYLAYER designations.

If you use acByBlock, AutoCAD draws new objects in the default color (white or black, depending on your configuration) until they are grouped into the block. When the block is inserted in the drawing, the objects in the block inherit the current setting of the color property.

If you use acByLayer, new objects assume the color of the layer upon which they are drawn.

 

   Comments?