cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Archicad Python API
About automating tasks in Archicad using the Python API.
SOLVED!

Python delete Attributes replacing with another

GabrielGG
Booster

Hello,

there is the option to delete attributes and also to createthem in the Python APY but when deleting and creating another Attribute is showing missing attributes in the elementes and also in the standard Tool preferences in Archicad.

 

Is there the option to Delete and Replace in Python?

I only know the command "deleteAttributes"

 

Thanks

Gabriel

Since Archicad 11
Currently at Franz&Sue Zt GmbH
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
runxel
Hero

Yeah, that's severely missing and would make the experience nicer.

However the Python API can only tap into the regular C++ API – and I don't see anything in there that could be useful. There is only the same "ACAPI_Attribute_Delete()" function.

So I wonder how AC is doing it. Private API? Or just a lengthy workaround where all references to this attribute are updated manually?

Lucas Becker | AC 29 on Mac (Sequoia) | Graphisoft Insider Panelist | Akroter.io – high-end GDL objects | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text

My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»

View solution in original post

4 REPLIES 4
Solution
runxel
Hero

Yeah, that's severely missing and would make the experience nicer.

However the Python API can only tap into the regular C++ API – and I don't see anything in there that could be useful. There is only the same "ACAPI_Attribute_Delete()" function.

So I wonder how AC is doing it. Private API? Or just a lengthy workaround where all references to this attribute are updated manually?

Lucas Becker | AC 29 on Mac (Sequoia) | Graphisoft Insider Panelist | Akroter.io – high-end GDL objects | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text

My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»

And it's also missing the possibility to Re-Index attributes ... it would be equally important to have this option 

Since Archicad 11
Currently at Franz&Sue Zt GmbH

I created this Wish
Python Attribute Editing // Add ability to Reindex... - Graphisoft Community

Maybe you want to vote to avoid it ending in the depths of the forgotten wishes 😉

Since Archicad 11
Currently at Franz&Sue Zt GmbH

You should make a wish on the tapir (open source addon) part too: https://github.com/ENZYME-APD/tapir-archicad-automation/issues 

Python is not actively developped by Graphisoft at the moment, only Tapir is proposing new commands for python/json.

Archicad 27 - GDL - PYTHON