VCGetDimItemColor
VCSetDimItemColor


Version:

1.2

Description:

The elements that make up a dimension include the dimension line, left and right extension lines, left and right arrow and the dimension text. The API gives complete control over the visual properties of each of the dimension elements independent of each other. Changing the properties of dimension elements will not effect previously drawn dimensions.

Declaration:

 

C/C++

extern "C" short WINAPI VCGetDimItemColor(short* iError, short i);
extern "C" void WINAPI VCSetDimItemColor(short* iError, short i, short j);

Delphi

function VCGetDimItemColor(var iError: Smallint; i: Smallint):Smallint; stdcall;
procedure VCSetDimItemColor(var iError: Smallint; i: Smallint; j: Smallint);stdcall;

ActiveX/COM

Function GetDimItemColor(ByVal i As Integer) As Integer
Sub SetDimItemColor(ByVal i As Integer, ByVal j As Integer)

Parameters:

i - the dimension item number.
0 - Dimension Line
1-  Left Arrow
2 - Right Arrow
3 - Left Extension
4 - Right Extension
5 - Dim Text
j
 - the color value from 0 to 255.

Notes:

 

See Also:

VCGetDimItemLineWidth, VCGetDimItemLineType, VCGetDimDisplayItemName