Color Property

Specifies the color of an object or layer.

See Also | Example

Signature

object.Color

object

All Drawing objects, Group, Layer
The object or objects this property applies to.

Color

acColor enum; read-write (write-only for the Group object)
The default color designation is acByLayer. Use a color index number from 0 to 256, or one of the constants listed here:

acByBlock

acByLayer (not valid for Layer object)

acRed

acYellow

acGreen

acCyan

acBlue

acMagenta

acWhite

Remarks

This property is obsolete and will be removed in a future version. When using this property, colors can be set and read as numeric index values ranging from 0 to 256. Constants are provided for the standard seven colors, as well as for 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. The value acByLayer is not valid for a Layer object.

 

   Comments? 
500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@entercad.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.