We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2020-07-21 05:02 PM - last edited on 2021-09-15 10:33 AM by Noemi Balogh
Solved! Go to Solution.
2020-07-21 06:01 PM
2020-07-21 06:01 PM
2020-07-21 07:32 PM
2020-07-21 08:26 PM
2020-07-21 08:29 PM
2020-07-22 12:28 PM
2020-07-22 12:47 PM
2020-07-22 12:53 PM
from archicad import ACConnection conn = ACConnection.connect() acc = conn.commands act = conn.types acu = conn.utilities zoneNumberPropertyId = acu.GetBuiltInPropertyId('Zone_ZoneNumber') elementIdPropertyId = acu.GetBuiltInPropertyId('General_ElementID') zonesTemperatureReqPropertyId = acu.GetUserDefinedPropertyId('ZONES', 'Temperature Requirement') propertyIds = [ zoneNumberPropertyId, elementIdPropertyId, zonesTemperatureReqPropertyId ] propertyValuesDictionary = acu.GetPropertyValuesDictionary(acc.GetAllElements(), propertyIds) for elementId, valuesDictionary in propertyValuesDictionary.items(): for propertyId, value in valuesDictionary.items(): print(f"{elementId} {propertyId} {value}")
from archicad import ACConnection conn = ACConnection.connect() acc = conn.commands act = conn.types acu = conn.utilities propertyIds = acc.GetPropertyIds([ act.BuiltInPropertyUserId('Zone_ZoneNumber'), act.BuiltInPropertyUserId('General_ElementID'), act.UserDefinedPropertyUserId(['ZONES', 'Temperature Requirement']), ]) propertyValuesDictionary = acu.GetPropertyValuesDictionary(acc.GetAllElements(), propertyIds) for elementId, valuesDictionary in propertyValuesDictionary.items(): for propertyId, value in valuesDictionary.items(): print(f"{elementId} {propertyId} {value}")
2020-07-22 02:35 PM
print(f"{elementId.guid} {propertyId.guid} {value}") AttributeError: 'ElementIdArrayItem' object has no attribute 'guid'
2020-07-22 04:32 PM