判断一个群组是否存在。
rhinocriptsyntax.IsGroup (group_name)
rhinocript.group.IsGroup (group_name)
group_name |
必须参数。字符串。现有群组的名称。 |
布尔值 |
如果执行成功,返回 True,如果执行不成功返回 False。 |
import rhinoscriptsyntax as rs
group = rs.GetString("Group name to verify")
if rs.IsGroup(group):
print "The group exists."
else:
print "The group does not exist."
AddGroup