GRAPHISOFT®

Python APIVersion: 0.23 Beta

GetAttributeDictionary

Retrieves the list of the attributes with the given type.

def GetAttributeDictionary (typeID) -> Dict (String, APIObject)

 

Parameters

typeID
[in] The type of the requested attributes. See API_AttrTypeID for available attribute types.

 

Return Values

A dictionary of the available attributes with the given type. Keys of the items are the indices of the attributes.

 

Remarks

For information on how to interpret the returned APIObject dictionary values, visit the C++ documentation.

 

Example

layers = GetAttributeDictionary(API_LayerID)
print("Number of layers: {}".format(len(layers)))

 

Requirements

Version: Python API 0.1 or Later
Module: GS

 

See Also

SearchAttributeByName, ModifyAttribute

All functions