从文档中移除一个现有的群组。引用群组不能被移除。移除群组并不会删除群组包含的物件。
rhinoscriptsyntax.DeleteGroup (group_name)
rhinoscript.group.DeleteGroup (group_name)
group_name |
必须参数。字符串。现有群组的名称。 |
布尔值 |
True 或 False 表示执行完成或失败。 |
import rhinoscriptsyntax as rs
groups = rs.GroupNames()
if groups:
for group in groups: rs.DeleteGroup(group)
AddGroup