<< Click to Display Table of Contents > Path |
The following command can be found under Mark → Edit... → Path
|
---|
|
☒ Set ☒ Get |
||
---|---|---|---|
Function |
int CCI_Return = ScSetPenPathForPen(ref short Master_Pen, ref short Enable, ref short Pen_1, ref int Loop_Pen_1, ref short Pen_2, ref int Loop_Pen_2, ref short Pen_3, ref int Loop_Pen_4, ref short Pen_4, ref int Loop_Pen_1, ref short Pen_5, ref int Loop_Pen_5) int CCI_Return = ScGetPenPathForPen(ref short Master_Pen, ref short Enable, ref short Pen_1, ref int Loop_Pen_1, ref short Pen_2, ref int Loop_Pen_2, ref short Pen_3, ref int Loop_Pen_4, ref short Pen_4, ref int Loop_Pen_1, ref short Pen_5, int Loop_Pen_5) |
||
ASCII |
- |
||
Description |
Get or set the pen path settings. |
||
Master_Pen |
Type: short |
Unit: none |
|
Pen number for which the pen path settings are set or get. |
|||
Enable |
Type: short |
Unit: none |
|
•0: Enable •1: Disable |
|||
Pen_1 |
Type: short |
Unit: none |
|
Pen number for the first pen path loops. |
|||
Loop_Pen_1 |
Type: int |
Unit: none |
|
Number of loops with Pen_1. |
|||
Pen_2 |
Type: short |
Unit: none |
|
Pen number for the second pen path loops. |
|||
Loop_Pen_2 |
Type: int |
Unit: none |
|
Number of loops with Pen_2. |
|||
Pen_3 |
Type: short |
Unit: none |
|
Pen number for the third pen path loops. |
|||
Loop_Pen_3 |
Type: int |
Unit: none |
|
Number of loops with Pen_3. |
|||
Pen_4 |
Type: short |
Unit: none |
|
Pen number for the fourth pen path loops. |
|||
Loop_Pen_4 |
Type: int |
Unit: none |
|
Number of loops with Pen_4. |
|||
Pen_5 |
Type: short |
Unit: none |
|
Pen number for the fifth pen path loops. |
|||
Loop_Pen_5 |
Type: int |
Unit: none |
|
Number of loops with Pen_5. |
|||
CCI_Return |
Type: int |
||
CCI return number, see error list. |
|||
Notes |
- |
||
C# Example: Set the following pen path parameters for master pen 1: enable pen path, 15 loops with pen 9, 11 loops with pen 11, 15 loops with pen 9, 11 loops with pen 11, 15 loops with pen 9:
sc_com_pen_path Pen_Path = new sc_com_pen_path(); Pen_Path.penToUse = new short[ 5 ]; Pen_Path.loopOfPenToUse = new int[ 5 ]; Pen_Path.pen = 1; Pen_Path.enable = 1; Pen_Path.penToUse[ 0 ] = 9; Pen_Path.loopOfPenToUse[ 0 ] = 15; Pen_Path.penToUse[ 1 ] = 11; Pen_Path.loopOfPenToUse[ 1 ] = 11; Pen_Path.penToUse[ 2 ] = 9; Pen_Path.loopOfPenToUse[ 2 ] = 15; Pen_Path.penToUse[ 3 ] = 11; Pen_Path.loopOfPenToUse[ 3 ] = 11; Pen_Path.penToUse[ 4 ] = 9; Pen_Path.loopOfPenToUse[ 4 ] = 15; int CCI_Return = cci.ScSetPenPathForPen( ref Pen_Path.pen, ref Pen_Path.enable, ref Pen_Path.penToUse[ 0 ], ref Pen_Path.loopOfPenToUse[ 0 ], ref Pen_Path.penToUse[ 1 ], ref Pen_Path.loopOfPenToUse[ 1 ], ref Pen_Path.penToUse[ 2 ], ref Pen_Path.loopOfPenToUse[ 2 ], ref Pen_Path.penToUse[ 3 ], ref Pen_Path.loopOfPenToUse[ 3 ], ref Pen_Path.penToUse[ 4 ], ref Pen_Path.loopOfPenToUse[ 4 ] ); |
|||
C# Example: Get pen path parameters for master pen 1:
sc_com_pen_path penPath = new sc_com_pen_path(); penPath.penToUse = new short[ 5 ]; penPath.loopOfPenToUse = new int[ 5 ]; penPath.pen = 1; int CCI_Return = cci.ScGetPenPathForPen( ref penPath.pen, ref penPath.enable, ref penPath.penToUse[ 0 ], ref penPath.loopOfPenToUse[ 0 ], ref penPath.penToUse[ 1 ], ref penPath.loopOfPenToUse[ 1 ], ref penPath.penToUse[ 2 ], ref penPath.loopOfPenToUse[ 2 ], ref penPath.penToUse[ 3 ], ref penPath.loopOfPenToUse[ 3 ], ref penPath.penToUse[ 4 ], ref penPath.loopOfPenToUse[ 4 ] ); |
Table 98: Pen Path