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

ArchiCAD API / ArchiCAD JSON API

_hque
Participant

Hi everybody, 


I have a web app with my own way to structure a building's data and geometry and I want to export it to ArchiCAD. 
So creating an ArchiCAD file with all elements (walls, slabs, ...) as ArchiCAD objects and download it. 

 

Is it possible to have this custom export script on a Web API using the ArchiCAD JSON API or is there another way to achieve this?

Best, 

Niklas 

4 REPLIES 4
Joel Buehler
Enthusiast

i hope i understand you question right, but from waht i get, you want to use the ArchiCAD JSON API to get information out of Archicad, right? 

That does not work with the JSON Interface, since this is a oneway communication.

 

https://archicadapi.graphisoft.com/JSONInterfaceDocumentation/#Introduction

 

but no problem! you can just write your own plugin that has that functionality with the Archicad API. 

 

EDIT: i should have first read the documentation 😄 

you can get a lot of information trough the API. like this example:

 

https://archicadapi.graphisoft.com/JSONInterfaceDocumentation/#GetPropertyIds

 

very cool. 

_hque
Participant

Thanks for your answer @Joel Buehler 

 

i hope i understand you question right, but from waht i get, you want to use the ArchiCAD JSON API to get information out of Archicad, right? 

 

hm, not really I want to create more or less an "Export to ArchiCAD" for my custom logic of geometry and building elements. So it would be rather information to ArchiCAD. 
All the examples that I found using the ArchiCAD JSON API is getting information from an ArchiCAD file like in your posted example getting properties from a file.

Ah oh, ok now i get you. thats sounds interesting! 

 

 

 

kency
Enthusiast

You can write your own Archicad Add-On, invoke API to get the data and will be able to create walls, slabs, morphs  etc. https://graphisoft.github.io/archicad-api-devkit/index.html.

This can be a starter https://github.com/GRAPHISOFT/archicad-maze-generator?tab=readme-ov-file