GetGroupOfElement
Returns the GUID of the group of the given element.
def GetGroupOfElement (elemGuid) -> String
Parameters
- elemGuid
- [in] GUID of an element.
Return Values
This function returns the GUID of the group of the given element and APINULLGuid if the element is not grouped.
Remarks
This function is analogous to the ACAPI_ElementGroup_GetGroup function of the C++ API.
Example
groupGuidSet = set() for elemGuid in GetElementList(API_ZombieElemID): groupGuid = GetGroupOfElement(elemGuid) if groupGuid != APINULLGuid: groupGuidSet.add(groupGuid) print("Number of Groups: %d" % len(groupGuidSet))
Requirements
- Version: Python API 0.1 or Later
- Module: GS