GetElementType
Returns the type ID of a given element.
def GetElementType (elemGuid) -> Integer
Parameters
- elemGuid
- [in] GUID of an element.
Return Values
This function returns the type ID of the given element. See API_ElemTypeID for available element types.
Remarks
This function is analogous to the ACAPI_Element_GetHeader function of the C++ API.
Example
print("Selected elements:") for elemGuid in GetSelectedElements (): type = GetElementType(elemGuid) print("\t{}".format (GetElementTypeName(type)))
Requirements
- Version: Python API 0.1 or Later
- Module: GS