ā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