<< Click to Display Table of Contents > 

Client Control Interface Manual > Global Settings > General

General
Previous pageReturn to chapter overviewNext page

The following parameters can be found in SAMLight at Settings System General.

Mode → Application

oDon't Update View

oDisableUndo

Save Pens Now

Save Settings Now

Time Shift Map

 

Save Pens Now
 

Set

Get

DLL Function

int CCI_Return = ScExecCommand(int Cmd_ID)

ASCII Function

int CCI_Return = ScCciExecCommand(int Cmd_ID)

Description

Saves the current pens to the settings file.

Cmd_ID

Type: int

ID:

Location: ScComSAMLightClientCtrlExecCommandConstants

scComSAMLightClientCtrlExecCommandSaveSettingsNow

77

CCI_Return

Type: int

CCI return number, see error list.

Notes

-

C# Example: Save Pens now:
 
int CCI_Return = cci.ScExecCommand((int)ScComSAMLightClientCtrlExecCommandConstants.scComSAMLightClientCtrlExecCommandSavePensNow);

Table 58: Save Pens Now

 

Save Settings Now
 

Set

Get

DLL Function

int CCI_Return = ScExecCommand(int Cmd_ID)

ASCII Function

int CCI_Return = ScCciExecCommand(int Cmd_ID)

Description

Saves the current settings to the settings file.

Cmd_ID

Type: int

ID:

Location: ScComSAMLightClientCtrlExecCommandConstants

scComSAMLightClientCtrlExecCommandSaveSettingsNow

51

CCI_Return

Type: int

CCI return number, see error list.

Notes

-

C# Example: Save settings now:
 
int CCI_Return = cci.ScExecCommand((int)ScComSAMLightClientCtrlExecCommandConstants.scComSAMLightClientCtrlExecCommandSaveSettingsNow);

Table 59: Save Settings Now

Time Shift Map
 

Set

Get

DLL Function

int CCI_Return = ScExecCommand(int Cmd_ID)

ASCII Function

int CCI_Return = ScCciExecCommand(int Cmd_ID)

Description

This allows the definition of a time shift map.

Cmd_ID

Type: int

ID:

Location: ScComSAMLightClientCtrlExecCommandConstants

scComSAMLightClientCtrlExecCommandTimeShift

82

Define shift map type with DoublePara1:

o0: Time

o1: Month

o2: Day

o3: Year

Define time shift map number with DoublePara2 0-4.

Define table index number with DoublePara3 (0 based).

Define the shift string with StringPara1.

Define start time with StringPara2 (only for time shift map (DoublePara1 = 0)).

CCI_Return

Type: int

CCI return number, see error list.

Notes

Select entities with EntitySelected.

C# Example:Define first Time Shift Map:

 

int CCI_Return_01 = cci.ScSetDoubleValue((int)

ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeDoublePara1, 0);

int CCI_Return_02 = cci.ScSetDoubleValue((int)

ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeDoublePara2, 0);

 

for (int i = 0; i < 24; i++)

     {

      int CCI_Return_03 = cci.ScSetDoubleValue((int)

ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeDoublePara3, i);

      int sec = i % 60;

      int min = i / 60;

      int h = 0;

      string strTime = h.ToString() + ":" + min.ToString() + ":" + sec.ToString();

      int CCI_Return_04 = cci.ScSetStringValue((int)

ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlStringValueTypeStringPara1

, strTime + "Avscd");

      int CCI_Return_05 = cci.ScSetStringValue((int)

ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlStringValueTypeStringPara2,

strTime);

      int CCI_Return_06 = cci.ScExecCommand((int)

ScComSAMLightClientCtrlExecCommandConstants.scComSAMLightClientCtrlExecCommandTimeShift);

           }

Table 60: Time Shift Map