C++
HRESULT AXAUTOEXP AcAxPutColor( const AcDbObjectId& objId, AcColor color );
File
axboiler.h
Description
Sets the color for the specified object.
AcColor is an enum defined in axauto15.h. Possible values are:
acByBlock | 0 |
acRed | 1 |
acYellow | 2 |
acGreen | 3 |
acCyan | 4 |
acBlue | 5 |
acMagenta | 6 |
acWhite | 7 |
acByLayer | 256 |
Returns HRESULT. The macros SUCCEEDED() and FAILED() can be used to determine whether the function succeeded. The return value should be forwarded to the COM client; nothing else needs to be done. The function cleans up after itself in case of an error and also sets up the Error Info object that can be queried from the COM client to get specific information about what caused any given failure.
Parameters
Parameters | Description |
---|---|
objId | Input object ID of object for which to set the color |
color | Input color |