<< Click to Display Table of Contents >
This chapter deals with the option splitting. There exist several options that are only available in some modes but not in all modes. The commands available in all modes are explained below. Other commands only available in a few modes are explained with further details in the following subchapters:
For an overview which options are available for which modes, please see the SAMLight manual chapter on Spllitting. Following commands can be used and are relevant for all Splitting Modes: |
---|
☒ Set ☐ Get |
||
---|---|---|
DLL Function |
int CCI_Return = ScExecCommand(int Cmd_ID) |
|
ASCII Function |
int CCI_Return = ScCciExecCommand(int Cmd_ID) |
|
Description |
Enable or disable the splitting checkbox or replit the current job. |
|
Cmd_ID |
Type: int |
ID: |
Location: ScComSAMLightClientCtrlExecCommandConstants |
||
scComSAMLightClientCtrlExecCommandResplitJob |
13 |
|
Resplit / activate the splitting of a job that was modified so that the split data have to be updated by this option. |
||
scComSAMLightClientCtrlExecCommandDisableSplit |
44 |
|
Disable splitting. |
||
CCI_Return |
Type: int |
|
CCI return number, see error list. |
||
Notes |
•The splitting mode will be activated if it is disabled. |
|
C# Example: Disable splitting:
int CCI_Return = cci.ScExecCommand((int)ScComSAMLightClientCtrlExecCommandConstants.scComSAMLightClientCtrlExecCommandDisableSplit); |
Table 275: Disable Splitting
☒ Set ☒ Get |
|||
---|---|---|---|
DLL Function |
int CCI_Return = ScSetLongValue(int Value_Type, int Checkbox) int Checkbox = ScGetLongValue(int Value_Type) |
||
ASCII Function |
int CCI_Return = ScCciSetLongValue(int Value_Type, int Checkbox) int Checkbox = ScCciGetLongValue(int Value_Type) |
||
Description |
Set or get the state of various global splitting checkboxes. |
||
Value_Type |
Type: int |
ID: |
|
Location: ScComSAMLightClientCtrlValueTypes |
|||
scComSAMLightClientCtrlLongValueTypeSplitKeepMarkFlag |
127 |
||
Checkbox Keep Mark In Progress Active. |
|||
scComSAMLightClientCtrlLongValueTypeSplitDoNotRecalculateSplitLines |
128 |
||
Checkbox Do Not Recalculate Split Lines. Only available in vector marking - fixed size splitting. |
|||
scComSAMLightClientCtrlLongValueTypeSplitCogOverlappedLines |
129 |
||
Checkbox Cog Vectors in Overlap Area. Not available in Bitmap Marking. |
|||
scComSAMLightClientCtrlLongValueTypeSplitEntityBasedOnlyTopLevel |
130 |
||
Checkbox Top Level Entities as Split Parts. Only available in vector marking - entity based splitting. |
|||
scComSAMLightClientCtrlLongValueTypeSplitEntityBasedOnlyTopLevelUngroupWinTextChars2D |
132 |
||
Checkbox Ungroup Text. Top Level Entities as Split Part has to be enabled before. Only available in vector marking - entity based splitting. |
|||
scComSAMLightClientCtrlLongValueTypeSplitAllowPreSort |
133 |
||
Checkbox Avoid Unnecessary Splits in Overlap Area. Only available in vector marking - fixed split size. |
|||
scComSAMLightClientCtrlLongValueTypeWorkpieceMovement |
147 |
||
Checkbox Workpiece Movement. Not available for 1D MOTF Splitting. |
|||
scComSAMLightClientCtrlLongValueTypeBmpKeepSize |
154 |
||
Checkbox Keep Bitmap Size. Only available in splitting submode Bitmap Marking. |
|||
Checkbox |
Type: int |
Unit: none |
|
•0: Disable Checkbox •1: Enable Checkbox |
|||
CCI_Return |
Type: int |
||
CCI return number, see error list. |
|||
Notes |
•The availability depends on the 1D MOTF Splitting Submode. |
||
C# Example: Enable cog vectors in overlap area:
int CCI_Return = cci.ScSetLongValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlLongValueTypeSplitCogOverlappedLines, 1 ); |
|||
C# Example: Get the state of the cog vectors in overlap area checkbox:
int Cog_Overlapped_Lines_Checkbox = cci.ScGetLongValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlLongValueTypeSplitCogOverlappedLines ); |
Table 276: Global Splitting Checkboxes
☒ Set ☐ Get |
|||
---|---|---|---|
DLL Function |
int CCI_Return = ScSetStringValue(int Value_Type, string File_Name) |
||
ASCII Function |
int CCI_Return = ScCciSetStringValue(int Value_Type, string File_Name) |
||
Description |
Set the string values of the file name. |
||
Value_Type |
Type: int |
ID: |
|
Location: ScComSAMLightClientCtrlValueTypes |
|||
scComSAMLightClientCtrlStringValueTypeSaveSplitsJobFileName |
21 |
||
File_Name |
Type: string |
Unit: none |
|
Set the required file name value. |
|||
CCI_Return |
Type: int |
||
CCI return number, see error list. |
|||
Notes |
|
||
C# Example: Set file name for splitjob: int Split_Job = cci.ScSetStringValue((int)ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlStringValueTypeSaveSplitsJobFileName, Environment.ExpandEnvironmentVariables(@"%SCAPS_SAM%") + "\\jobfiles\\demo_splitted.sjf"); // Job is saved in <SCAPS>/jobfiles |
Table 277: Save Splits Job File Name
☒ Set ☐ Get |
||
---|---|---|
DLL Function |
int CCI_Return = ScExecCommand(int Cmd_ID) |
|
ASCII Function |
int CCI_Return = ScCciExecCommand(int Cmd_ID) |
|
Description |
This constant can be used to save a splitted job file as an entity list of split tiles. |
|
Cmd_ID |
Type: int |
ID: |
Location: ScComSAMLightClientCtrlExecCommandConstants |
||
scComSAMLightClientCtrlExecCommandSaveSplitsAsOrigEntities |
30 |
|
Save the splitted job with the functionality of the checkbox "Original positions / Positions as in job to mark". |
||
scComSAMLightClientCtrlExecCommandSaveSplitsAsEntities |
38 |
|
Save the splitted job. |
||
CCI_Return |
Type: int |
|
CCI return number, see error list. |
||
Notes |
This constant has to be executed after SaveSplitsJobFileName. |
|
C# Example: Save Split Job:
int CCI_Return = cci.ScExecCommand((int)ScComSAMLightClientCtrlExecCommandConstants.scComSAMLightClientCtrlExecCommandSaveSplitsAsEntities); |
Table 278: Save Splits
☒ Set ☒ Get |
|||
---|---|---|---|
DLL Function |
int CCI_Return = ScSetLongValue(int Value_Type, int Split_Mode) int Split_Mode = ScGetLongValue(int Value_Type) |
||
ASCII Function |
int CCI_Return = ScCciSetLongValue(int Value_Type, int Split_Mode) int Split_Mode = ScCciGetLongValue(int Value_Type) |
||
Description |
Set or get the global split mode. |
||
Value_Type |
Type: int |
ID: |
|
Location: ScComSAMLightClientCtrlValueTypes |
|||
scComSAMLightClientCtrlLongValueTypeSplitMode |
125 |
||
Split_Mode |
Type: int |
Unit: none |
|
•1: Angular Splitting •2: 1D Planar Splitting •3: 2D Planar Splitting •4: 1D Mark on the Fly Splitting •5: Ring Splitting |
|||
CCI_Return |
Type: int |
||
CCI return number, see error list. |
|||
Notes |
•If no mode is selected, the return is -1. |
||
C# Example: Set splitting mode to angular splitting:
int CCI_Return = cci.ScSetLongValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlLongValueTypeSplitMode, 1 ); |
|||
C# Example: Get current split mode:
int Split_Mode = cci.ScGetLongValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlLongValueTypeSplitMode ); |
Table 279: Split Mode
☒ Set ☒ Get |
|||
---|---|---|---|
DLL Function |
int CCI_Return = ScSetLongValue(int Value_Type, int Parameter) int Parameter = ScGetLongValue(int Value_Type) |
||
ASCII Function |
int CCI_Return = ScCciSetLongValue(int Value_Type, int Parameter) int Parameter = ScCciGetLongValue(int Value_Type) |
||
Description |
Set or get various long values in the 1D MOTF settings dialog. |
||
Value_Type |
Type: int |
ID: |
|
Location: ScComSAMLightClientCtrlValueTypes |
|||
scComSAMLightClientCtrlLongValueTypeAngularSplittingSplitAxis |
94 |
||
Split axis: •0: Vertical •1: Horizontal |
|||
scComSAMLightClientCtrlLongValueType1dMotfReverse |
104 |
||
Split Direction. (Only 1D MOTF Splitting). •0: Normal •1: Reverse |
|||
scComSAMLightClientCtrlLongValueTypeReverseSplitOrder |
108 |
||
Enables and disables the ReverseSplitOrder. (Not available for 1D MOTF Splitting) •0: Off. •1: On. |
|||
Parameter |
Type: int |
Unit: none |
|
The corresponding value. |
|||
CCI_Return |
Type: int |
||
CCI return number, see error list. |
|||
Notes |
- |
||
C# Example: Set the split order to vertical:
int CCI_Return = cci.ScSetLongValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlLongValueTypeAngularSplittingSplitAxis, 0 ); |
|||
C# Example: Get the set axis:
int Axis_State = cci.ScGetLongValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlLongValueTypeAngularSplittingSplitAxis ); |
Table 280: Split Order
SplitAxis |
ReverseSplitOrder |
Fixed Size Split Order |
Entity Based Split Order |
---|---|---|---|
0 |
0 |
||
0 |
1 |
||
1 |
0 |
||
1 |
1 |
Table 281: Splitting Direction
☒ Set ☒ Get |
|||
---|---|---|---|
DLL Function |
int CCI_Return = ScSetDoubleValue(int Value_Type, double Overlap) double Overlap = ScGetDoubleValue(int Value_Type) |
||
ASCII Function |
int CCI_Return = ScCciSetDoubleValue(int Value_Type, double Overlap) double Overlap = ScCciGetDoubleValue(int Value_Type) |
||
Description |
Set or get the split overlap value for each available split mode. |
||
Value_Type |
Type: int |
ID: |
|
Location: ScComSAMLightClientCtrlValueTypes |
|||
scComSAMLightClientCtrlDoubleValueTypeSplitOverlap |
145 |
||
Overlap |
Type: double |
Unit: [%] |
|
Define the split overlap value. |
|||
CCI_Return |
Type: int |
||
CCI return number, see error list. |
|||
Notes |
- |
||
C# Example: Set the split overlap to 50.0%:
int CCI_Return = cci.ScSetDoubleValue((int)ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeSplitOverlap, 50.0); |
|||
C# Example: Get the split overlap value:
double Overlap = cci.ScGetDoubleValue((int)ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeSplitOverlap); |
Table 282: Split Overlap