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.

Template file management with Python API

zsoka biro
Contributor

Our newest use case for the Python API is managing our template file. This post is meant to ba a general feedback about the whole process, including some bug reports and feature requests.

The idea in a nutshell: we came to realize, that it would be beneficial to have different subtypes of our template file. E.g. we need different kind of Views and Layouts in a newly built residential building than in an office refurbishment project. To reach this goal we decided to build a Master-Template file that just contains everything that we could come up with for our different use cases. Alongside it we've created a "Template cleaner" Python script to be able to generate the various subtypes via deleting, renaming and relocating Views, Layouts and Attributes. With this method we are already able to generate 12 rudimentary subtypes, which is a good place to start with.

There was only one bug so far that we've noticed (ArchiCAD 27 / Windows 11):

  • Renaming Layout Ids is not working (even though the code should enable it)

Adding the following features to Python API could really give a boost to our workflow:

  • Management of Graphic Overrides
  • Management of Publisher Sets
  • Deleting Schedules
0 REPLIES 0