SOLVED!
Problem with Python API

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-05-04
04:32 PM
- last edited on
2021-09-14
09:38 AM
by
Noemi Balogh
2021-05-04
04:32 PM
Is there any way to build a Add-On API using python. I want to build a Add-On API using python but i didn't find any resource or any document for this task.
Solved! Go to Solution.
Labels:
- Labels:
-
Automation (Python or JSON)
1 ACCEPTED SOLUTION
Accepted Solutions
Solution

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-05-19 03:26 PM
2021-05-19
03:26 PM
From version 24, Archicad has a new JSON Interface. It provides a way for external applications to automate ARCHICAD functions. It is a one-way communication from the external software to ARCHICAD.
The communication happens via HTTP using JSON messages.
GRAPHISOFT publishes an official Python binding for the ARCHICAD JSON Interface at the Python Package Index (PyPI). This package helps to establish the connection and hides the JSON communication layer.
When you are running a python script, the script sends JSON messages to Archicad and Archicad returns JSON responses back to the script via HTTP.
So the Python API is based on the JSON Interface. I recommend you to check the official documentation of the JSON Interface:https://archicadapi.graphisoft.com/JSONInterfaceDocumentation
The names of the Python API functions are completely the same as the JSON command names.
The communication happens via HTTP using JSON messages.
GRAPHISOFT publishes an official Python binding for the ARCHICAD JSON Interface at the Python Package Index (PyPI). This package helps to establish the connection and hides the JSON communication layer.
When you are running a python script, the script sends JSON messages to Archicad and Archicad returns JSON responses back to the script via HTTP.
So the Python API is based on the JSON Interface. I recommend you to check the official documentation of the JSON Interface:
The names of the Python API functions are completely the same as the JSON command names.
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-05-04 05:49 PM
2021-05-04
05:49 PM
It is not possible yet to build Add-On on Python. Python has only few commands, that can only change ID's, apply some properties and work with Layouts.
http://archicadapi.graphisoft.com/archicadPythonPackage/archicad.html
Graphisoft is promising to add more commands with upcoming versions. Currently it's unknown, will Python commands duplicate C functions and commands.
If you need to build proper Add-On - the only way is to write it on C.
Graphisoft is promising to add more commands with upcoming versions. Currently it's unknown, will Python commands duplicate C functions and commands.
If you need to build proper Add-On - the only way is to write it on C.
Solution

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-05-19 03:26 PM
2021-05-19
03:26 PM
From version 24, Archicad has a new JSON Interface. It provides a way for external applications to automate ARCHICAD functions. It is a one-way communication from the external software to ARCHICAD.
The communication happens via HTTP using JSON messages.
GRAPHISOFT publishes an official Python binding for the ARCHICAD JSON Interface at the Python Package Index (PyPI). This package helps to establish the connection and hides the JSON communication layer.
When you are running a python script, the script sends JSON messages to Archicad and Archicad returns JSON responses back to the script via HTTP.
So the Python API is based on the JSON Interface. I recommend you to check the official documentation of the JSON Interface:https://archicadapi.graphisoft.com/JSONInterfaceDocumentation
The names of the Python API functions are completely the same as the JSON command names.
The communication happens via HTTP using JSON messages.
GRAPHISOFT publishes an official Python binding for the ARCHICAD JSON Interface at the Python Package Index (PyPI). This package helps to establish the connection and hides the JSON communication layer.
When you are running a python script, the script sends JSON messages to Archicad and Archicad returns JSON responses back to the script via HTTP.
So the Python API is based on the JSON Interface. I recommend you to check the official documentation of the JSON Interface:
The names of the Python API functions are completely the same as the JSON command names.