Verifies the existence of a group.
rhinocriptsyntax.IsGroup (group_name)
rhinocript.group.IsGroup (group_name)
group_name |
Required. String. The name of an existing group. |
Boolean |
True if successful, otherwise 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