(API) Retrive Nodes of a group from exsisting group and then extracting the results
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Guys,
I am trying to create VBA excel to extract the exsisting Node group list from robot and then extract the nodal and FE-Resulta of the selected node group from the list. For that As 1st setp I tried to retive the exsisting group list from robot
but I amgetting Mismatch error in the highlighted line.
Sub ListNodesGroup()
Dim RobApp As RobotApplication
Dim RGroups As RobotGroupServer
Set RobApp = New RobotApplication
Set RGroups = RobApp.Project.Structure.Groups
Dim Group As RobotGroup, GroupCnt As Integer, ObjTyp As IRobotObjectType
ObjTyp = IRobotObjectType.I_OT_NODE
GroupCnt = RGroups.GetCount(ObjTyp)
If GroupCnt <> 0 Then
For j = 1 To GroupCnt
Set Group = RGroups.Get(ObjTyp, j)
Cells(2 + j, 1) = j
Cells(2 + j, 2) = Group.Name
Next j
End If
Set RobApp = Nothing
End Sub
please help me