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.

Python and subelements

Mathias Jonathan
Advocate

Hi!

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

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
Mathias Jonathan
Advocate

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.

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