hi @shulwh
Sub ListGroupBars()
Dim RobApp As IRobotApplication, 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_BAR
GroupCnt = RGroups.GetCount(ObjTyp)
If GroupCnt <> 0 Then
For j = 1 To GroupCnt
Set Group = RGroups.Get(ObjTyp, j)
Debug.Print j, Group.Name, Group.SelList, Group.Color
Next j
End If
Set RobApp = Nothing
End Sub
Best Regards
Stéphane Kapetanovic
Did you find this post helpful? If it gave you one or more solutions,
don't forget to accept the solution and leave a < like !
