<< Click to Display Table of Contents > 

Client Control Interface Manual > Job > Styles

Styles
Previous pageReturn to chapter overviewNext page

In CCI commands that work with entity names, add the prefix "style_entity_" to the entity name to access the styles, for example: "style_entity_Style 1".

 

Style Number

Reapply all Styles

 

Style Number
 

Set

Get

DLL Function

int CCI_Return = ScSetEntityLongData(string Entity_Name, int Data_ID, int Style)

int Style = ScGetEntityLongData(string Entity_Name, int Data_ID)

ASCII Function

int CCI_Return = ScCciSetEntityLongData(string Entity_Name, int Data_ID, int Style)

int Style = ScCciGetEntityLongData(string Entity_Name, int Data_ID)

Description

Set or get the assigned style for the specified entity.

Entity_Name

Type: string

Unit: none

Specify the entity to be changed.

Data_ID

Type: int

ID:

Location: ScComSAMLightClientCtrlFlags

scComSAMLightClientCtrlLongDataIdEntityStyle

149

Style

Type: int

Unit: none

-1: Unassign style to entity.

1..256: The style number.

CCI_Return

Type: int

CCI return number, see error list.

Notes

-

C# Example: Assign style 4 to  entity "ent1":

 

int CCI_Return = cci.ScSetEntityLongData("ent1", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlLongDataIdEntityStyle, 4);

C# Example: Get style number assigned style of entity "ent":

 

int Style = cci.ScGetEntityLongData("ent1", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlLongDataIdEntityStyle);

Table 238: Assign Style

Reapply all Styles

Set

Get

DLL Function

int CCI_Return = ScExecCommand(int Cmd_ID)

ASCII Function

int CCI_Return = ScCciExecCommand(int Cmd_ID)

Description

Styles are reapplied to all entities assigned to a style. Thus, if the style has changed, the chane becomes active on the assigned entities.

Cmd_ID

Type: int

ID:

Location: ScComSAMLightClientCtrlExecCommandConstants

scComSAMLightClientCtrlExecCommandReApplyAllStyles

75

CCI_Return

Type: int

CCI return number, see error list.

Notes

-

C# Example: Reapply all styles:

 

int CCI_Return = cci.ScExecCommand( ( int )ScComSAMLightClientCtrlExecCommandConstants.scComSAMLightClientCtrlExecCommandReApplyAllStyles );

Table 239: Reapply all Styles