GRAPHISOFT®

Python APIVersion: 0.23 Beta

GetSelectedElements

Returns a list of GUIDs of the selected elements.

def GetSelectedElements () -> List (String)

 

Parameters

 

Return Values

This function returns the list of the GUIDs of the selected elements.

 

Remarks

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

GetElementHeader, GetElementList, ClickElement

All functions