Sets or returns the color of an entity.
Colors can be set and read as numeric index values ranging from 0 to 256. For the standard seven colors and the ByBlock and ByLayer designations, you can also use constants shown below. The default color designation is ByLayer (0).
Syntax
integerVariable = object.Color
object.Color = <integer>
where:
integerVariable is a variable for storing the color index value.
object is the entity object for which you set or return the color.
Colors Constant | Index Value |
---|---|
VicBlue |
5 |
VicByBlock |
0 |
VicByLayer |
256 |
vicBy ColorXOr |
1 |
vicCyan |
4 |
vicGreen |
3 |
vicMagenta |
6 |
vicRed |
1 |
vicVarious |
-2 |
vicWhite |
7 |
vicYellow |
2 |
Examples ...