cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Arguments of GetBuiltInPropertyId()

 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 Solution

Accepted Solutions
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

Go to post

2 Replies 2
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!

 

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!