-
Notifications
You must be signed in to change notification settings - Fork 338
/
Copy pathSelGroups.rvb
29 lines (24 loc) · 925 Bytes
/
SelGroups.rvb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' SelGroups.rvb -- June 2011
' If this code works, it was written by Dale Fugier.
' If not, I don't know who wrote it.
' Works with Rhino 4.0.
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Option Explicit
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Selects grouped objects
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Sub SelGroups
Dim arrGroups, arrSelect, strGroup
arrGroups = Rhino.GroupNames
If Not IsNull(arrGroups) Then
arrSelect = Rhino.MultiListBox(arrGroups, "Object groups to select")
If IsArray(arrSelect) Then
Call Rhino.EnableRedraw(False)
For Each strGroup In arrSelect
Call Rhino.ObjectsByGroup(strGroup, True)
Next
Call Rhino.EnableRedraw(True)
End If
End If
End Sub