Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I preparing a script that modifies combination type for selected number of combinations. I have a problem with listing and changing combination type for sls frequent, characteristic etc.
I defined all types of available combinations:
I try to read combination type using following script:
Sub CombTypeList()
Call CreateRobotObject
Dim rSelection As RobotSelection
Set rSelection = RobApp.Project.Structure.Selections.CreatePredefined(I_PS_CASE_COMBINATIONS)
Debug.Print "Selection", rSelection.ToText
Dim AllObjects As RobotCaseCollection
Set AllObjects = RobApp.Project.Structure.Cases.GetMany(rSelection)
Dim i As Long
Dim c As IRobotCase
For i = 1 To AllObjects.Count
Set c = AllObjects.Get(i)
Debug.Print c.combinationType
Next i
End SubIn the result I got:
Selection 2to8
0
1
2
3
1
1
1 So SLS:CHR, SLS:FRE and SLS:QPR is simplified to SLS 1.
How can I get unique values of those types? API manual mentions for example I_CBT_SLS_EC_FRE = 4 but I have no idea how to read this value.
I would appreciate your help.
Michal
Solved! Go to Solution.