Color Property |
Specifies the color of an object or layer.
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? |