When can I use the graphisoft python plugin?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-09-19
04:31 AM
- last edited on
2023-04-12
12:33 PM
by
Laszlo Simon
Does anyone know this question? I want to know when I can use graphisoft python plugin.Probably which version can use it? AC23 or AC24...
Solved! Go to Solution.
- Labels:
-
Automation (Python or JSON)
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-12-17 01:44 PM
Please read the new announcement:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-09-19 10:44 AM
Python Add-On development is still in the experimental phase, we are investigating the possible solutions.
One of those is to create a Python wrapper for the existing C++ API. We have an early implementation of that, but that may change. We'll make our choice depending on the real user requirements. So I cannot answer your question yet, but we are open to use cases, feel free to share your thoughts.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-09-19 11:36 AM
I found that allplan's SmartPart operation is very similar to AC's GDL.So whether the operation of the AC python plugin will be like the allplan python plugin.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-09-19 06:19 PM
A Python Wrapper would certainly be the quickest and most direct approach but there are other issues to consider if this immense effort is to be useful.
My concern is the present diversion of data access in Archicad. IFC, Properties, Expressions, GDL, & API data structures all have a slice and none have total access to all data. This severely limits practical user applications and creates confusion.
Also, some consideration should be made for small, quick macros, which don't require much planning or expertise necessary to accomplish those quick data display issues.
Finally, I hope Archicad does not 'reinvent the wheel' as they just did with expressions, by introducing another language format. Hopefully, Graphisoft will take a look at their sister corp, which has managed to simplify (somewhat) the marriage of both the configuration and display of data through their python/worksheet system. Not saying that even that can't be improved on. This is certainly not something that should be rushed into and should certainly first be reviewed by a skilled, diverse user base.
Windows 11 - Visual Studio 2022; ArchiCAD 27
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-09-22 08:12 AM
poco2013 wrote:The API has access to all of the above. Therefore, a Python wrapper potentially could too. But as Tibor says, it depends on what would provide the most benefit. Posting potential use-cases for Python scripts would be informative.
My concern is the present diversion of data access in Archicad. IFC, Properties, Expressions, GDL, & API data structures all have a slice and none have total access to all data.
Central Innovation

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-09-22 10:52 PM
Frequently a quick means of performing area analysis is required. Typically done external to Archicad using Excel, etc. By area analysis, I mean -- FARs, setbacks, permeable, impermeable, overhangs, undisturbed areas and the percent & overall of each- All in a tabulated SS. -- You get the idea. In some software, this is only a half dozen lines of code in either Python or Ruby. i.e. a macro. Generally, this requires summing selected zones and subtracting others. Certainly this can be done now with the Archicad API -- But a PETA & difficult when you need to change the formulas.
The key is a means of doing a 'quick' search, sort, selection & enumeration based on some criteria.
Also, important is the use of regular expressions to simplify discovery - RegEX. Python has this feature as a add-on -- Hopefully, it will be included?
Windows 11 - Visual Studio 2022; ArchiCAD 27
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-10-09 01:15 PM
poco2013 wrote:Hi,
By way of example:
Frequently a quick means of performing area analysis is required. Typically done external to Archicad using Excel, etc. By area analysis, I mean -- FARs, setbacks, permeable, impermeable, overhangs, undisturbed areas and the percent & overall of each- All in a tabulated SS. -- You get the idea. In some software, this is only a half dozen lines of code in either Python or Ruby. i.e. a macro. Generally, this requires summing selected zones and subtracting others. Certainly this can be done now with the Archicad API -- But a PETA & difficult when you need to change the formulas.
The key is a means of doing a 'quick' search, sort, selection & enumeration based on some criteria.
Also, important is the use of regular expressions to simplify discovery - RegEX. Python has this feature as a add-on -- Hopefully, it will be included?
First, regex -- most external libraries can be used in the Python code.
Could you please post a sample Python script that achieves what you need in another software? I'm curious how much of that is available in our Python interface at the moment.
Best, Akos

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-10-09 02:41 PM
I was not exactly clear in my “proposed example” What I was suggesting was a python function to return a array, dictionary or tuple to objects meeting a criteria. We can argue about the criteria but basically the standard such as ID, properties/parameters/attributes, layers etc..As of now in VW, a single parameter is returned to a single object or a sum of objects. In Chief Architect, parameters must be collected in labels and stored in Global memory before use. None of this is a major problem but is less intuitive. Easier to first obtain a array of GUID's then interrogate each or the array of GUID via a single function and/or a enumeration and then obtain back the parameters/properties/expression results of interest.
After data is collected, basically areas but sometimes conditionals/status, the calculations and display is routine and depends on the programs capabilities. Without a means of data display in layout, all of the above is fruitless. I particularly like VW's User Spreadsheets but even there could be more versatile.
Windows 11 - Visual Studio 2022; ArchiCAD 27
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-10-10 03:36 PM
I am sorry if I missed some potential options which could solve this issue in a different manner.
Regards,
P

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-10-11 01:47 AM
As a long time GDL developer this is very very exciting!!
Giving us the power of the API with something like python would just be amazing.
I have so many questions, but the main one is when ?
