Share

AcCm Global Functions

Description

Defines global functions specific to AcCm classes.

Functions

Function Description
accmAttenuateRGB Returns a copy of an AcCmEntityColor object that has had its color dimmed. This function utilizes the current value of the XFADECTL system variable.
accmGetColorFromACIName Initializes clr with the AutoCAD Color Index (ACI) specified by pInput. The pInput string may contain any of the possible ACI specializations such as BYLAYER, BYBLOCK, Red, Blue, or ACI color numbers as strings, such as "0", "1", or "256".The name specified in pInput must be the localized name of the color. This name can be retrieved from accmGetLocalizedColorNames().Returns Acad::eOk if successful. Otherwise, returns Acad::eBadColor.
accmGetColorFromColorBookName Initializes clr with the color book color represented by pColorName in the book specified by pBookName. The lookup for the pair in the cached color book files occurs at the time of this initialization.Returns Acad::eOk if successful, or Acad::eInvalidInput if color books are not available. Otherwise, this function returnsAcad::eBadColor.
accmGetColorFromRGBName Initializes clr with the RGB color specified by pInput. The pInput string must be three numerical tokens separated by 2 commas. For example, pInput could be "34,35,123".Returns Acad::eOk if successful. Otherwise, returns Acad::eBadColor.
accmGetFromHSBName Initializes clr with the HSB color specified by pInput.
accmGetLocalizedColorNames Returns the localized names of standard AutoCAD colors, such as BYBLOCK, BYLAYER, Red, Yellow, and so forth.The caller must not free the returned strings.
accmResolveEffectiveColorToRGB Returns a copy of an AcCmEntityColor object that is based on the color of a layer.

Was this information helpful?