Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.

Archicad Python API
About automating tasks in Archicad using the Python API.
SOLVED!

Arguments of GetBuiltInPropertyId()

Anonymous
Not applicable
 I know I can use GetBuiltInPropertyId as shown below example, but where do I find the arguments (element type and property name) such as "Zone_ZoneName"?
Is there a list somewhere?
 
<example>
from archicad import ACConnection
conn = ACConnection.connect()
assert conn
acu = conn.utilities
propertyId = acu.GetBuiltInPropertyId("Zone_ZoneName")
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
JT1986
Booster

Hi iu-tamura

 

You can list all BuiltIn- and UserDefinedProperties of a project by running the script below. If you run it in visual studio code or in Archicad Python Palette, the script should return available values to the terminal- / console-view. After that, you can copy and paste the printed result into, for example, Word and save it as a text document.

 

 

 

from archicad import ACConnection

conn = ACConnection.connect()
acc = conn.commands
act = conn.types
acu = conn.utilities

PropertyIds = acc.GetAllPropertyNames()
for PropertyId in PropertyIds:
    print(PropertyId)

 

 

Result should look like this (Taken from visual studio code)
JT1986_0-1704629543797.png

 

 
-JT

View solution in original post

2 REPLIES 2
Solution
JT1986
Booster

Hi iu-tamura

 

You can list all BuiltIn- and UserDefinedProperties of a project by running the script below. If you run it in visual studio code or in Archicad Python Palette, the script should return available values to the terminal- / console-view. After that, you can copy and paste the printed result into, for example, Word and save it as a text document.

 

 

 

from archicad import ACConnection

conn = ACConnection.connect()
acc = conn.commands
act = conn.types
acu = conn.utilities

PropertyIds = acc.GetAllPropertyNames()
for PropertyId in PropertyIds:
    print(PropertyId)

 

 

Result should look like this (Taken from visual studio code)
JT1986_0-1704629543797.png

 

 
-JT
Anonymous
Not applicable

Thanks for your answer. I was able to view the property list!