GRAPHISOFT®

Python APIVersion: 0.23 Beta

GetElementTypeName

Returns the localized name of a built-in element type.

def GetElementTypeName (typeID) -> String

 

Parameters

typeID
[in] Element type identifier of an element. See API_ElemTypeID for available element types.

 

Return Values

This function returns the localized name of an element type.

 

Remarks

This function is analogous to the APIAny_GetElemTypeNameID 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

 

See Also

GetElementList, GetElementType

All functions