Got a minute? We appreciate your feedback:

Graphisoft Learn survey
Archicad Python API
About automating tasks in Archicad using the Python API.

Python Error Message

In Working with Python API, I am trying to change some properties using:error_msg = acc.SetPropertyValuesOfElements(elemPropertyValues)
With one element, WC 23, I am getting the error message of:

ERROR{'code':6001,'message':teamwork Permission Denied'}

As a test, I am using the Archicad Sample House plan 23 which I opened in 24.There appear to be three WC23 in the plan. one on the first floor and two on the ground floor. My return says there are 4 objects, however

Anyone know how to fix this?? I am not using teamwork.

Windows 10 - Visual Studio 2019; ArchiCAD 26

Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
Hi Gerry,

Thank you for reporting us this issue!
This is certainly a bug in our API. Next time please report bugs at our Support Portal ( or in email (, that way we can response faster.

I wrote a script which detects ElementID conflicts and tries to generate unique ElementID for conflicted elements. Using this script I was able to reproduce your issue with the Archicad Hillside House Sample Project ( without using Teamwork.
from archicad import ACConnection

conn = ACConnection.connect()
assert conn

acc = conn.commands
act = conn.types
acu = conn.utilities

elementIdPropertyId = acu.GetBuiltInPropertyId('General_ElementID')
elements = acc.GetAllElements()

newElemPropertyValues = []

idConflicts = {}
propertyValuesOfElements = acc.GetPropertyValuesOfElements(elements, [elementIdPropertyId])
for i in range(len(propertyValuesOfElements)):
	elementId = elements.elementId
	elementPropertyValues = propertyValuesOfElements
	for elementPropertyValue in elementPropertyValues.propertyValues:
		propertyValue = elementPropertyValue.propertyValue
		if propertyValue.value in idConflicts:
			idConflicts[propertyValue.value] += 1
			propertyValue.value += f' {idConflicts[propertyValue.value]}'
			newElemPropertyValues.append(act.ElementPropertyValue(elementId, elementIdPropertyId, propertyValue))
			idConflicts[propertyValue.value] = 1

result = acc.SetPropertyValuesOfElements(newElemPropertyValues)
I added this to our bugfixing short-term backlog and I hope we can fix this issue soon.
Identifier: DEF-1317 (Python API: SetPropertyValuesOfElements returns "TeamWork permission denied" error with Solo project)

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!