<< Click to Display Table of Contents > 

Client Control Interface Manual > Job > Entities Properties > Hatch

Hatch
Previous pageReturn to chapter overviewNext page

Apply Hatch Style

EnableHatch & HatchStyle

Hatch Angle

Hatch Beam Compensation

Hatch Distance

Hatch End Offset

Hatch Flags

Hatch Line Index Step

Hatch Line Reduction

Hatch Loop

Hatch Loop Angle

Hatch Minimal Jump

Hatch Minimal Length

Hatch Num Loops

Hatch Point Offset

Hatch Rehatch All

Hatch Select Hatch Pair

Hatch Start Offset

 

Apply Hatch Pair Preset
 

Set

Get

DLL Function

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

ASCII Function

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

Description

Apply a predefined hatch pair preset to the selected entity.

Entity_Name

Type: string

Unit: none

The corresponding entity name.

Data_ID

Type: int

ID:

Location: ScComSAMLightClientCtrlFlags

scComSAMLightClientCtrlLongDataIdEntitySetToDefaultHatchPair

133

Hatch_Style

Type: int

Unit: none

1..9: Hatch style 1..9

CCI_Return

Type: int

CCI return number, see error list.

Notes

When applying the hatch pair preset via CCI, the hatch pair preset is not displayed in SAMLight.

C# Example: Apply hatch pair preset "Hatch style 1" to the entity "circle":
 
int CCI_Return = cci.ScSetEntityLongData("circle", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlLongDataIdEntitySetToDefaultHatchPair, 1);

Table 198: Apply Hatch Pair Preset

Enable Hatch & Hatch Style
 

Set

Get

DLL Function

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

int Hatch_Style = ScGetEntityLongData(string Entity_Name, int Data_ID)

ASCII Function

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

int Hatch_Style = ScCciGetEntityLongData(string Entity_Name, int Data_ID)

Description

Set or get the hatch styles of the both hatchers. Both hatchers can be enabled, disabled or the actual mode can be retrieved.

Entity_Name

Type: string

Unit: none

The corresponding entity name.

Data_ID

Type: int

ID:

Location: ScComSAMLightClientCtrlFlags

scComSAMLightClientCtrlLongDataIdEnableHatching1

51

Enable the hatch 1.

scComSAMLightClientCtrlLongDataIdEnableHatching2

52

Enable the hatch 2.

Hatch_Style

Type: int

Index:

Disable

0

Wavy line without marking jumps

1

Horizontal left to right without marking jumps

2

Horizontal right to left without marking jumps

3

Rotational

4

Wavy line including jumps

5

Zigzag

6

CCI_Return

Type: int

CCI return number, see error list.

Notes

Rotational, applies only to rectangle, ellipse and triangle structures in the current version.

C# Example: Set hatch 1 to hatch style 4 (rotational):
 
int CCI_Return = cci.ScSetEntityLongData("", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlLongDataIdEnableHatching1, 4);

C# Example: Get hatch style of hatch 2:
 
int Hatch_Style_2 = cci.ScGetEntityLongData("", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlLongDataIdEnableHatching2);

Table 199: Enable Hatch & Hatch Style

Hatch Angle
 

Set

Get

DLL Function

int CCI_Return = ScSetEntityDoubleData(string Entity_Name, int Data_ID, double Hatch_Angle)

int CCI_Return = ScGetEntityDoubleData(string Entity_Name, int Data_ID, ref double Hatch_Angle)

ASCII Function

int CCI_Return = ScCciSetEntityDoubleData(string Entity_Name, int Data_ID, double Hatch_Angle)

double Hatch_Angle = ScCciGetEntityDoubleData(string Entity_Name, int Data_ID)

Description

This function can be used to set or get the hatch angles.

Entity_Name

Type: string

Unit: none

The corresponding entity name.

Data_ID

Type: int

ID:

Location: ScComSAMLightClientCtrlFlags

scComSAMLightClientCtrlDoubleDataIdHatchAngle1

38

Set hatch angle 1.

scComSAMLightClientCtrlDoubleDataIdHatchAngle2

46

Set hatch angle 2.

Hatch_Angle

Type: double

Unit: [rad]

The corresponding hatch angle.

CCI_Return

Type: int

CCI return number, see error list.

Notes

Please note that the unit of angle in CCI project is [rad], whereas the unit in SAMLight is [deg].

These constants can also be used for drill. If it is desired to get and set the values of entities in the Drill Geometry, "drill_geom_" should be added at the beginning of the entity name. For example, if the entity name is "Test", in the CCI call the entity name should be modified to "drill_geom_Test".

C# Example: Set hatch angle 1 to 45° = pi/4:
 
int CCI_Return = cci.ScSetEntityDoubleData("", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdHatchAngle1, 45.0 * Math.PI / 180.0);

C# Example: Get hatch angle 2 for rectangle with entity name "rectangle":
 
double Hatch_Angle_2 = 0;

int CCI_Return = cci.ScGetEntityDoubleData("rectangle", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdHatchAngle2, ref Hatch_Angle_2);

Table 200: Hatch Angle

Hatch Beam Compensation
 

Set

Get

DLL Function

int CCI_Return = ScSetEntityDoubleData(string Entity_Name, int Data_ID, double Beam_Comp)

int CCI_Return = ScGetEntityDoubleData(string Entity_Name, int Data_ID, ref double Beam_Comp)

ASCII Function

int CCI_Return = ScCciSetEntityDoubleData(string Entity_Name, int Data_ID, double Beam_Comp)

double Beam_Comp = ScCciGetEntityDoubleData(string Entity_Name, int Data_ID)

Description

Sets or gets the hatch beam compensation for hatch number one or two.

Entity_Name

Type: string

Unit: none

The corresponding entity name.

Data_ID

Type: int

ID:

Location: ScComSAMLightClientCtrlFlags

scComSAMLightClientCtrlDoubleDataIdHatchBeamcompensation1

43

Set hatch beamcompensation 1.

scComSAMLightClientCtrlDoubleDataIdHatchBeamcompensation2

51

Set hatch beamcompensation 2.

Beam_Comp

Type: double

Unit: [mm]*

The corresponding hatch beam compensation.

CCI_Return

Type: int

CCI return number, see error list.

Notes

The default unit is mm, but the user can select a different unit.

C# Example: Set hatch beam compensation 1 to 0.05:
 
int CCI_Return = cci.ScSetEntityDoubleData("", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdHatchBeamcompensation1, 0.05);

C# Example: Get hatch beam compensation 2 for rectangle with entity name "rectangle":
 
double Beam_Compensation_2 = 0;

int CCI_Return = cci.ScGetEntityDoubleData("rectangle", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdHatchBeamcompensation2, ref Beam_Compensation_2);

Table 201: Hatch Beam Compensation

Hatch Distance
 

Set

Get

DLL Function

int CCI_Return = ScSetEntityDoubleData(string Entity_Name, int Data_ID, double Distance)

int CCI_Return = ScGetEntityDoubleData(string Entity_Name, int Data_ID, ref double Distance)

ASCII Function

int CCI_Return = ScCciSetEntityDoubleData(string Entity_Name, int Data_ID, double Distance)

int Distance = ScCciGetEntityDoubleData(string Entity_Name, int Data_ID)

Description

Sets or gets the hatch distance for the hatch number one or two.

Entity_Name

Type: string

Unit: none

The corresponding entity name.

Data_ID

Type: int

ID:

Location: ScComSAMLightClientCtrlFlags

scComSAMLightClientCtrlDoubleDataIdHatchDistance1

37

Set hatch distance 1.

scComSAMLightClientCtrlDoubleDataIdHatchDistance2

45

Set hatch distance 2.

Distance

Type: double

Unit: [mm]*

The corresponding hatch distance.

CCI_Return

Type: int

CCI return number, see error list.

Notes

The default unit is mm, but the user can select a different unit.

C# Example: Set hatch distance 1 to 10:
 
int CCI_Return = cci.ScSetEntityDoubleData("", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdHatchDistance1, 10);

C# Example: Get hatch distance 2:
 
double Hatch_Distance_2 = 0;

int CCI_Return = cci.ScGetEntityDoubleData("rectangle", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdHatchDistance2, ref hatchdistance2);

Table 202: Hatch Distance

Hatch End Offset
 

Set

Get

DLL Function

int CCI_Return = ScSetEntityDoubleData(string Entity_Name, int Data_ID, double End_Offset)

int CCI_Return = ScGetEntityDoubleData(string Entity_Name, int Data_ID, ref double End_Offset)

ASCII Function

int CCI_Return = ScCciSetEntityDoubleData(string Entity_Name, int Data_ID, double End_Offset)

double End_Offset = ScCciGetEntityDoubleData(string Entity_Name, int Data_ID)

Description

Sets or gets the hatch endoffset for hatch number one or two.

Entity_Name

Type: string

Unit: none

The corresponding entity name.

Data_ID

Type: int

ID:

Location: ScComSAMLightClientCtrlFlags

scComSAMLightClientCtrlDoubleDataIdHatchEndoffset1

42

Set hatch endoffset 1.

scComSAMLightClientCtrlDoubleDataIdHatchEndoffset2

50

Set hatch endoffset 2.

End_Offset

Type: double

Unit: [mm]*

The corresponding hatch endoffset.

CCI_Return

Type: int

CCI return number, see error list.

Notes

The default unit is mm, but the user can select a different unit.

C# Example: Set hatch endoffset 1 to 0.05:
 
int CCI_Return = cci.ScSetEntityDoubleData("", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdHatchEndoffset1, 0.05);

C# Example: Get hatch endoffset 2 for rectangle with entity name "rectangle".
 
double Hatch_Endoffset_2 = 0;

int CCI_Return = cci.ScGetEntityDoubleData("rectangle", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdHatchEndoffset2, ref Hatch_Endoffset_2);

Table 203: Hatch End Offset

Hatch Flags
 

Set

Get

DLL Function

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

int Flag = ScGetEntityLongData(string Entity_Name, int Data_ID)

ASCII Function

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

int Flag = ScCciGetEntityLongData(string Entity_Name, int Data_ID)

Description

Get or set or clear the hatch flags for the given entity. Use SetHatchFlags to check the flag and ClearHatchFlags to uncheck the flag.

Entity_Name

Type: string

Unit: none

The corresponding entity name.

Data_ID

Type: int

ID:

Location: ScComSAMLightClientCtrlFlags

scComSAMLightClientCtrlLongDataIdSetHatchFlags1

81

Set flags of hatch 1.

scComSAMLightClientCtrlLongDataIdSetHatchFlags2

82

Set flags of hatch 2.

scComSAMLightClientCtrlLongDataIdClearHatchFlags1

91

Clear flags of hatch 1.

scComSAMLightClientCtrlLongDataIdClearHatchFlags2

92

Clear flags of hatch 2.

Flag

Type: int

Flag:

Location: ScComSAMLightClientCtrlFlags

scComSAMLightClientCtrlLongDataIdHatchFlagNoSort

0x100

Checkbox Sort on the hatch property page.

scComSAMLightClientCtrlLongDataIdHatchFlagAllLines

0x400

Checkbox All lines on the hatch property page.

scComSAMLightClientCtrlLongDataIdHatchFlagPolyLineBeamComp

0x2000

This flag activates the NumLoops feature of the hatch. It will create a beam

compensation from outside to inside of the object. This works not only for

2D but also in SAM3D situation.

scComSAMLightClientCtrlLongDataIdHatchFlagDontFillRest

0x4000

Checkbox Don't fill reset on the hatch property page.

scComSAMLightClientCtrlLongDataIdHatchFlagKeepAngle

0x80000

Checkbox KeepAngle on the hatch property page.

scComSAMLightClientCtrlLongDataIdHatchFlagEqualizeDistance

0x1000000

Checkbox Equalize Distance on the hatch property page.

scComSAMLightClientCtrlLongDataIdHatchFlagBeamComp

LoopReverseOrder

0x2000000

This flag has to be used together with the hatch flag PolyLineBeamComp

and will generate NumLoops from inside to outside of the object.

CCI_Return

Type: int

CCI return number, see error list.

Notes

This works not only for 2D but also in SAM3D situation.

C# Example: Activate the checkboxe Sort of hatch 1A:

 

int CCI_Return = cci.ScSetEntityLongData("", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlLongDataIdClearHatchFlags1, (int) ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlLongDataIdHatchFlagNoSort);

C# Example: Get current set hatch flags as hex value of hatch 1A:

 

int Hatch_Flags_1 = cci.ScGetEntityLongData("", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlLongDataIdSetHatchFlags1);

Table 204: Hatch Flags

Hatch Line Index Step
 

Set

Get

DLL Function

int CCI_Return = ScSetEntityDoubleData(string Entity_Name, int Data_ID, double Line_Index_Step)

int CCI_Return = ScGetEntityDoubleData(string Entity_Name, int Data_ID, ref double Line_Index_Step)

ASCII Function

int CCI_Return = ScCciSetEntityDoubleData(string Entity_Name, int Data_ID, double Line_Index_Step)

double Line_Index_Step = ScCciGetEntityDoubleData(string Entity_Name, int Data_ID)

Description

Sets or gets the hatch line index step for hatch number one or two.

Entity_Name

Type: string

Unit: none

The corresponding entity name.

Data_ID

Type: int

ID:

Location: ScComSAMLightClientCtrlFlags

scComSAMLightClientCtrlDoubleDataIdHatchLineIndexStep1

93

Set hatch line index step 1.

scComSAMLightClientCtrlDoubleDataIdHatchLineIndexStep2

94

Set hatch line index step 2.

Line_Index_Step

Type: double

Unit: [mm]*

The corresponding hatch line index step.

CCI_Return

Type: int

CCI return number, see error list.

Notes

Double value of hatch line index step must be between 1 and 1000000.

The default unit is mm, but the user can select a different unit.

C# Example: Set hatch line index Step 1 to 2:
 
int CCI_Return = cci.ScSetEntityDoubleData("", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdHatchLineIndexStep1, 2);

C# Example: Get hatch line index step 2 for rectangle with entity name "rectangle":
 
double Hatch_Line_Index_Step2 = 0;

int CCI_Return = cci.ScGetEntityDoubleData("rectangle", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdHatchLineIndexStep2, ref Hatch_Line_Index_Step2);

Table 205: Hatch Line Index Step

Hatch Line Reduction
 

Set

Get

DLL Function

int CCI_Return = ScSetEntityDoubleData(string Entity_Name, int Data_ID, double Line_Reduction)

int CCI_Return = ScGetEntityDoubleData(string Entity_Name, int Data_ID, ref double Line_Reduction)

ASCII Function

int CCI_Return = ScCciSetEntityDoubleData(string Entity_Name, int Data_ID, double Line_Reduction)

double Line_Reduction = ScCciGetEntityDoubleData(string Entity_Name, int Data_ID)

Description

Sets or gets the hatch line reduction for hatch number one or two.

Entity_Name

Type: string

Unit: none

The corresponding entity name.

Data_ID

Type: int

ID:

Location: ScComSAMLightClientCtrlFlags

scComSAMLightClientCtrlDoubleDataIdHatchLinereduct1

93

Set hatch line reduction 1.

scComSAMLightClientCtrlDoubleDataIdHatchLinereduct2

94

Set hatch line reduction 2.

Line_Reduction

Type: double

Unit: [mm]*

The corresponding hatch line reduction.

CCI_Return

Type: int

CCI return number, see error list.

Notes

The default unit is mm, but the user can select a different unit.

C# Example: Set hatch line reduction 1 to 0.05:
 
int CCI_Return = cci.ScSetEntityDoubleData("", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdHatchLinereduct1, 0.05);

C# Example: Get hatch line reduction 2 for rectangle with entity name "rectangle":
 
double Hatch_Line_Reduct_2 = 0;

int CCI_Return = cci.ScGetEntityDoubleData("rectangle", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdHatchLinereduct2, ref Hatch_Line_Reduct_2);

Table 206: Hatch Line Reduction

Hatch Loop
 

Set

Get

DLL Function

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

int Loop = ScGetEntityLongData(string Entity_Name, int Data_ID)

ASCII Function

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

int Loop = ScCciGetEntityLongData(string Entity_Name, int Data_ID)

Description

Sets or gets the hatch loop for hatch number one or two.

Entity_Name

Type: string

Unit: none

The corresponding entity name.

Data_ID

Type: int

ID:

Location: ScComSAMLightClientCtrlFlags

scComSAMLightClientCtrlLongDataIdHatchLoop1

134

Set hatch loop angle 1.

scComSAMLightClientCtrlLongDataIdHatchLoop2

135

Set hatch loop angle 2.

Loop

Type: int

Unit: none

The corresponding hatch loop.

CCI_Return

Type: int

CCI return number, see error list.

Notes

-

C# Example: Set hatch loop 15:
 
int CCI_Return = cci.ScSetEntityDoubleData("", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlLongDataIdHatchLoop1, 15);

C# Example: Get hatch loop angle 1:
 
double Hatch_Loop_1 = 0;

int CCI_Return = cci.ScGetEntityDoubleData("", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlLoopDataIdHatchLoop1, ref Hatch_Loop_1);

Table 207: Hatch Loop

Hatch Loop Angle
 

Set

Get

DLL Function

int CCI_Return = ScSetEntityDoubleData(string Entity_Name, int Data_ID, double Loop_Angle)

int CCI_Return = ScGetEntityDoubleData(string Entity_Name, int Data_ID, ref double Loop_Angle)

ASCII Function

int CCI_Return = ScCciSetEntityDoubleData(string Entity_Name, int Data_ID, double Loop_Angle)

double Loop_Angle = ScCciGetEntityDoubleData(string Entity_Name, int Data_ID)

Description

Sets or gets the hatch loop angle for hatch number one or two.

Entity_Name

Type: string

Unit: none

The corresponding entity name.

Data_ID

Type: int

ID:

Location: ScComSAMLightClientCtrlFlags

scComSAMLightClientCtrlDoubleDataIdHatchLoopAngle1

99

Set hatch loop angle 1.

scComSAMLightClientCtrlDoubleDataIdHatchLoopAngle2

100

Set hatch loop angle 2.

Loop

Type: double

Unit: [deg]

The corresponding hatch loop angle.

CCI_Return

Type: int

CCI return number, see error list.

Notes

-

C# Example: Set hatch loop angle 1 to 15:
 
int CCI_Return = cci.ScSetEntityDoubleData("", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdHatchLoopAngle1, 15.0);

C# Example: Get hatch loop angle 1:
 
double Hatch_Loop_Angle_1 = 0;

int CCI_Return = cci.ScGetEntityDoubleData("", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdHatchLinereduct2, ref Hatch_Loop_Angle_1);

Table 208: Hatch Loop Angle

Hatch Minimal Jump
 

Set

Get

DLL Function

int CCI_Return = ScSetEntityDoubleData(string Entity_Name, int Data_ID, double Min_Jump)

int CCI_Return = ScGetEntityDoubleData(string Entity_Name, int Data_ID, ref double Min_Jump)

ASCII Function

int CCI_Return = ScCciSetEntityDoubleData(string Entity_Name, int Data_ID, double Min_Jump)

double Min_Jump = ScCciGetEntityDoubleData(string Entity_Name, int Data_ID)

Description

Sets or gets the hatch minimal jump for hatch number one or two.

Data_ID

Type: int

ID:

Location: ScComSAMLightClientCtrlFlags

scComSAMLightClientCtrlDoubleDataIdHatchMinjump1

39

Set hatch minimal jump 1.

scComSAMLightClientCtrlDoubleDataIdHatchMinjump2

47

Set hatch minimal jump 2.

Entity_Name

Type: string

Unit: none

The corresponding entity name.

Min_Jump

Type: double

Unit: [mm]*

The corresponding hatch minimal jump.

CCI_Return

Type: int

CCI return number, see error list.

Notes

The default unit is mm, but the user can select a different unit.

C# Example: Set hatch minimal jump 1 to 0.02:
 
int CCI_Return = cci.ScSetEntityDoubleData("", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdHatchMinjump1, 0.02);

C# Example: Get hatch minimal jump 2 for rectangle with entity name "rectangle":
 
double hatch_min_jump_2 = 0;

int CCI_Return = cci.ScGetEntityDoubleData("rectangle", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdHatchMinjump2, ref hatch_min_jump_2);

Table 209: Hatch Minimal Jump

Hatch Minimal Length
 

Set

Get

DLL Function

int CCI_Return = ScSetEntityDoubleData(string Entity_Name, int Data_ID, double Minimal_Length)

int CCI_Return = ScGetEntityDoubleData(string Entity_Name, int Data_ID, ref double Minimal_Length)

ASCII Function

int CCI_Return = ScCciSetEntityDoubleData(string Entity_Name, int Data_ID, double Minimal_Length)

double Minimal_Length = ScCciGetEntityDoubleData(string Entity_Name, int Data_ID)

Description

Sets or gets the hatch minimal length for hatch number one or two.

Data_ID

Type: int

ID:

Location: ScComSAMLightClientCtrlFlags

scComSAMLightClientCtrlDoubleDataIdHatchMinLength1

84

Set Hatch Minimal Length 1.

scComSAMLightClientCtrlDoubleDataIdHatchMinLength2

86

Set Hatch Minimal Length 2.

Entity_Name

Type: string

Unit: none

The corresponding entity name.

Minimal_Length

Type: double

Unit: [mm]*

The corresponding hatch minimal length.

CCI_Return

Type: int

CCI return number, see error list.

Notes

The default unit is mm, but the user can select a different unit.

C# Example: Set hatch minimal length 1 to 1:
 
int CCI_Return = cci.ScSetEntityDoubleData("", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdHatchMinLength1, 1);

C# Example: Get hatch minimal length 2 for rectangle with entity name "rectangle":
 
double hatch_minimal_length_2 = 0;

int CCI_Return = cci.ScGetEntityDoubleData("rectangle", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdHatchMinLength2, ref hatch_minimal_length_2);

Table 210: Hatch Minimal Length

Hatch Num Loops
 

Set

Get

DLL Function

int CCI_Return = ScSetEntityDoubleData(string Entity_Name, int Data_ID, double Num_Loops)

int CCI_Return = ScGetEntityDoubleData(string Entity_Name, int Data_ID, ref double Num_Loops)

ASCII Function

int CCI_Return = ScCciSetEntityDoubleData(string Entity_Name, int Data_ID, double Num_Loops)

double Num_Loops = ScCciGetEntityDoubleData(string Entity_Name, int Data_ID)

Description

Sets or gets the hatch numloops for hatch number one or two.

Data_ID

Type: int

ID:

Location: ScComSAMLightClientCtrlFlags

scComSAMLightClientCtrlDoubleDataIdHatchNumloops1

44

Set hatch num loops 1.

scComSAMLightClientCtrlDoubleDataIdHatchNumloops2

52

Set hatch num loops 2.

Entity_Name

Type: string

Unit: none

The corresponding entity name.

Num_Loops

Type: int

Unit: none

The corresponding hatch num loops.

CCI_Return

Type: int

CCI return number, see error list.

Notes

-

C# Example: Set hatch NumLoops 1 to 5:
 
int CCI_Return = cci.ScSetEntityDoubleData("", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdHatchNumloops1, 5);

C# Example: Get hatch NumLoops 2 for rectangle with entity name "rectangle":
 
double hatch_num_loops_2 = 0;

int CCI_Return = cci.ScGetEntityDoubleData("rectangle", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdHatchNumloops2, ref hatch_num_loops_2);

Table 211: Hatch Num Loops

Hatch Point Offset
 

Set

Get

DLL Function

int CCI_Return = ScSetEntityDoubleData(string Entity_Name, int Data_ID, double Point_Offset)

int CCI_Return = ScGetEntityDoubleData(string Entity_Name, int Data_ID, ref double Point_Offset)

ASCII Function

int CCI_Return = ScCciSetEntityDoubleData(string Entity_Name, int Data_ID, double Point_Offset)

double Point_Offset = ScCciGetEntityDoubleData(string Entity_Name, int Data_ID)

Description

Sets or gets the hatch point offset for hatch number one or two.

Data_ID

Type: int

ID:

Location: ScComSAMLightClientCtrlFlags

scComSAMLightClientCtrlDoubleDataIdHatchPointOffset1

83

Set hatch point offset 1.

scComSAMLightClientCtrlDoubleDataIdHatchPointOffset2

85

Set hatch point offset 2.

Entity_Name

Type: string

Unit: none

The corresponding entity name.

Point_Offset

Type: double

Unit: [mm]*

The corresponding hatch point offset.

CCI_Return

Type: int

CCI return number, see error list.

Notes

The default unit is mm, but the user can select a different unit.

C# Example: Set hatch PointOffset 1 to 1:
 
int CCI_Return = cci.ScSetEntityDoubleData("", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdHatchPointOffset1, 5);

C# Example: Get hatch PointOffset 2 for rectangle with entity name "rectangle":
 
double hatch_point_offset_2 = 0;

int CCI_Return = cci.ScGetEntityDoubleData("rectangle", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdHatchPointOffset2, ref hatch_point_offset_2);

Table 212: Hatch Point Offset

Hatch Rehatch All
 

Set

Get

DLL Function

int CCI_Return = ScExecCommand(int Cmd_ID)

ASCII Function

int CCI_Return = ScCciExecCommand(int Cmd_ID)

Description

Updates the hatch of all entities in the current job.

Cmd_ID

Type: int

ID:

Location: ScComSAMLightClientCtrlExecCommandConstants

scComSAMLightClientCtrlExecCommandRehatchAll

28

CCI_Return

Type: int

CCI return number, see error list.

Notes

-

C# Example: Rehatch all entities:

 

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

Table 213: Hatch Rehatch All

Hatch Select Hatch Pair
 

Set

Get

DLL Function

int CCI_Return = ScSetLongValue(int Value_Type, int Number_Hatch_Pair)

int Number_Hatch_Pair = ScGetLongValue(int Value_Type)

ASCII Function

int CCI_Return = ScCciSetLongValue(int Value_Type, int Number_Hatch_Pair)

int Number_Hatch_Pair = ScCciGetLongValue(int Value_Type)

Description

Get or set a number for the Hatch Pair. 0 corresponds to Pair A and 4 corresponds to Pair E. This command will not update the GUI. Instead this will only affect the other Client Control Hatch commands.

Value_Type

Type: int

ID:

Location: ScComSAMLightClientCtrlValueTypes

scComSAMLightClientCtrlLongValueTypeSelectHatchPair

64

Number_Hatch_Pair

Type: int

Unit: none

0: Hatch Pair A

1: Hatch Pair B

2: Hatch Pair C

3: Hatch Pair D

4: Hatch Pair E

CCI_Return

Type: int

CCI return number, see error list.

Notes

-

C# Example: Set hatch pair E:

 
int CCI_Return = cci.ScSetLongValue((int) ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlLongValueTypeSelectHatchPair, 4);

C# Example: Get hatch pair:
 

int hatch_pair_number = cci.ScGetLongValue((int)ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlLongValueTypeSelectHatchPair);

Table 214: Hatch Select Hatch Pair

Hatch Start Offset
 

Set

Get

DLL Function

int CCI_Return = ScSetEntityDoubleData(string Entity_Name, int Data_ID, double Start_Offset)

int CCI_Return = ScGetEntityDoubleData(string Entity_Name, int Data_ID, ref double Start_Offset)

ASCII Function

int CCI_Return = ScCciSetEntityDoubleData(string Entity_Name, int Data_ID, double Start_Offset)

double Start_Offset = ScCciGetEntityDoubleData(string Entity_Name, int Data_ID)

Description

Sets or gets the hatch start offset for hatch number one or two.

Data_ID

Type: int

ID:

Location: ScComSAMLightClientCtrlFlags

scComSAMLightClientCtrlDoubleDataIdHatchStartoffset1

40

Set hatch start offset 1.

scComSAMLightClientCtrlDoubleDataIdHatchStartoffset2

48

Set hatch start offset 2.

Entity_Name

Type: string

Unit: none

The corresponding entity name.

Start_Offset

Type: double

Unit: [mm]*

The corresponding hatch start offset.

CCI_Return

Type: int

CCI return number, see error list.

Notes

The default unit is mm, but the user can select a different unit.

C# Example: Set hatch startoffset 1 to 0.05:
 
int CCI_Return = cci.ScSetEntityDoubleData("", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdHatchStartoffset1, 0.05);

C# Example: Get hatch startoffset 2 for rectangle with entity name "rectangle":
 
double hatch_start_offset_2 = 0;

int CCI_Return = cci.ScGetEntityDoubleData("rectangle", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdHatchStartoffset2, ref hatch_start_offset_2);

Table 215: Hatch Start Offset