License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…

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

Python and subelements

Hi!

Is there a way to access to subelement with the python API?

Archicad 27 - GDL - PYTHON
3 REPLIES 3
poco2013
Mentor

????  -- What do you mean by "subelement". Do you mean composite surfaces or GDL parameters or whatever and what do you want to do with them? Do you want a measurement or just a description?

Gerry

Windows 11 - Visual Studio 2022; ArchiCAD 27

I'm working on a script that helps classifying elements. I found that subelements/components (curtaiwalls components for example) are not affected by my script. I would like to access their classification and modify it.

Archicad 27 - GDL - PYTHON

It wasn't possible before but looks like now you can. I had this very same issue and came across this cool project from Enzyme: https://github.com/ENZYME-APD/tapir-archicad-automation?tab=readme-ov-file

Their additional JSON commands contain classification commands that can target subelements as well. I haven't tried as I'm still learning Python but this looks promising

BIM Manager
DKO Architecture - HCMC