<< Click to Display Table of Contents > Data Wizard |
•Sort
☒ Set ☐ Get |
||
---|---|---|
DLL Function |
int CCI_Return = ScExecCommand(int Cmd_ID) |
|
ASCII Function |
int CCI_Return = ScCciExecCommand(int Cmd_ID) |
|
Description |
This allows the use of the data wizard areas functions. |
|
Cmd_ID |
Type: int |
ID: |
Location: ScComSAMLightClientCtrlExecCommandConstants |
||
scComSAMLightClientCtrlExecCommandWizardClipper |
43 |
|
•Define area operation with DoublePara1: o0: Intersection o1: Union o2: Difference o3: Xor o4: Simplify •Define fill type with DoublePara2. o0: Even/Odd o1: NonZero o2: Positive o3: Negative |
||
CCI_Return |
Type: int |
|
CCI return number, see error list. |
||
Notes |
•Select entities with EntitySelected. |
|
C# Example: Set area type to union with fill type positive:
int CCI_Return_01 = cci.ScSetDoubleValue((int)ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeDoublePara1, 1.0); int CCI_Return_02 = cci.ScSetDoubleValue((int)ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeDoublePara2, 2.0); int CCI_Return_03 = cci.ScExecCommand((int)ScComSAMLightClientCtrlExecCommandConstants.scComSAMLightClientCtrlExecCommandWizardClipper); |
Table 232: Areas
☒ Set ☐ Get |
||
---|---|---|
DLL Function |
int CCI_Return = ScExecCommand(int Cmd_ID) |
|
ASCII Function |
int CCI_Return = ScCciExecCommand(int Cmd_ID) |
|
Description |
Create a beam comped copy of a entity with specified distance. |
|
Cmd_ID |
Type: int |
ID: |
Location: ScComSAMLightClientCtrlExecCommandConstants |
||
scComSAMLightClientCtrlExecCommandCreateBeamCompedCopy |
37 |
|
Select Entity via Entity Name to Copy with StringPara1. Determine the new Entity Name via StringPara2. The Dist parameter is defined by DoublePara1. |
||
CCI_Return |
Type: int |
|
CCI return number, see error list. |
||
Notes |
- |
|
C# Example: Create beam comped copy of entity "Test1" and name it "Test2" and place it at distance "20.0": int CCI_Return_02 = cci.ScSetStringValue((int) ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlStringValueTypeStringPara2,"BeamCompedEntity" ); int CCI_Return_03 = cci.ScSetDoubleValue((int)ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeDoublePara1, 20.0); |
Table 233: Create Beam Comped Copy
☐ Set ☒ Get |
|||
---|---|---|---|
DLL Function |
int Open_Polyline = ScGetEntityLongData(string Entity_Name, int Data_ID) |
||
ASCII Function |
int Open_Polyline = ScCciGetEntityLongData(string Entity_Name, int Data_ID) |
||
Description |
Check if a polyline (or any poly line in a group) is open. |
||
Entity_Name |
Type: string |
Unit: none |
|
Specify the entity to be checked. |
|||
Data_ID |
Type: int |
ID: |
|
Location: ScComSAMLightClientCtrlFlags |
|||
scComSAMLightClientCtrlLongDataIdEntityOpenPolyline |
148 |
||
Open_Polyline |
Type: int |
Unit: none |
|
•0: (all) closed •1: (any) open |
|||
CCI_Return |
Type: int |
||
CCI return number, see error list. |
|||
Notes |
- |
||
C# Example: Check if entity "logo" has any open polyline: int Open_Polyline = cci.ScGetEntityLongData( "logo", ( int )ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlLongDataIdEntityOpenPolyline ); |
Table 234: Check for Open Polyline
☒ Set ☐ Get |
||
---|---|---|
DLL Function |
int CCI_Return = ScExecCommand(int Cmd_ID) |
|
ASCII Function |
int CCI_Return = ScCciExecCommand(int Cmd_ID) |
|
Description |
Use the Data Reduction function of the Data Wizard. |
|
Cmd_ID |
Type: int |
ID: |
Location: ScComSAMLightClientCtrlExecCommandConstants |
||
scComSAMLightClientCtrlExecCommandWizardDataReductionRedundantPoints |
31 |
|
Use the data wizard function data reduction redundant points. |
||
scComSAMLightClientCtrlExecCommandWizardDataReductionShortLines |
42 |
|
This allows you to use the data wizard function data reduction short lines. The Short Lines Length can be defined with DoublePara1. |
||
CCI Return |
Type: int |
|
CCI error number, see error list. |
||
Notes |
•Select entities with EntitySelected. |
|
C# Example: Data reduction short lines: int CCI_Return_01 = cci.ScSetDoubleValue((int)ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeDoublePara1, 10.0); int CCI_Return_02 = cci.ScExecCommand((int)ScComSAMLightClientCtrlExecCommandConstants.scComSAMLightClientCtrlExecCommandWizardDataReductionShortLines); |
Table 235: Data Reduction
☒ Set ☐ Get |
||
---|---|---|
DLL Function |
int CCI_Return = ScExecCommand(int Cmd_ID) |
|
ASCII Function |
int CCI_Return = ScCciExecCommand(int Cmd_ID) |
|
Description |
Executes the Data Wizard command "Set Order". There can be set 3 parameters with Client Control. See Double Value Types DoublePara1/2/3. This will affect all entities in the job. |
|
Cmd_ID |
Type: int |
ID: |
Location: ScComSAMLightClientCtrlExecCommandConstants |
||
scComSAMLightClientCtrlExecCommandWizardOrder |
55 |
|
•Marking Order(Red Arrow): DoublePara1 o0: Left to Right o1: Top to Bottom o2: Right to Left o3: Bottom to Top •Checkbox: Sort Equal Coordinates By Size: DoublePara2 o0: Disable o1: Enable •Checkbox: Sort Equal By Other Coordinate: DoublePara3 o0: Disable o1: Enable |
||
CCI_Return |
Type: int |
|
CCI return number, see error list. |
||
Notes |
•Select entities with EntitySelected before. |
|
C# Example: Set Checkbox Sort Equal Coordinates by Size: int CCI_Return_01 = cci.ScSetDoubleValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeDoublePara2, 1 ); int CCI_Return_02 = cci.ScExecCommand((int)ScComSAMLightClientCtrlExecCommandConstants.scComSAMLightClientCtrlExecCommandWizardOrder); |
Table 236: Wizard Order
☒ Set ☐ Get |
||
---|---|---|
DLL Function |
int CCI_Return = ScExecCommand(int Cmd_ID) |
|
ASCII Function |
int CCI_Return = ScCciExecCommand(int Cmd_ID) |
|
Description |
Use the Sort function from the Data Wizard. |
|
Cmd_ID |
Type: int |
ID: |
Location: ScComSAMLightClientCtrlExecCommandConstants |
||
scComSAMLightClientCtrlExecCommandWizardCreateSinglePenGroup |
29 |
|
Create a pen group for a specific pen. Additional notes: •Returns '0' if no vector with the chosen pen is found in the selected entites. •Choose pen with ScSetPen. •Eventually it could be helpful to select all entities and create one group first by corresponding CCI command before settings pen. |
||
scComSAMLightClientCtrlExecCommandWizardCreateOneGroup |
57 |
|
Executes the data wizard command Create One Group. |
||
scComSAMLightClientCtrlExecCommandWizardClosePolylines |
61 |
|
With this command it is possible to close polylines. Specify the Close Distance with DoublePara1. |
||
scComSAMLightClientCtrlExecCommandWizardOptimizeJumps |
62 |
|
The total jump distance between poly lines would be optimized. |
||
scComSAMLightClientCtrlExecCommandWizardCreatePenGroups |
63 |
|
Regroups selected entities into pen groups. |
||
CCI_Return |
Type: int |
|
CCI return number, see error list. |
||
Notes |
•Select entities with EntitySelected before. |
|
C# Example: Close polylines: int CCI_Return_01 = cci.ScSetDoubleValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeDoublePara2, 1.0 ); int CCI_Return_02 = cci.ScExecCommand((int)ScComSAMLightClientCtrlExecCommandConstants.scComSAMLightClientCtrlExecCommandWizardClosePolylines); |
Table 237: Sort