2025-10-03 11:50 AM
Question: How to properly populate Building Material properties in Archicad XML exports
Hello! I'm working on programmatically generating Archicad XML files for Building Materials. I can successfully create the XML
structure and import it into Archicad - the materials show up with the correct names and Archicad recognizes them. However, I'm
facing an issue:
The Problem:
When I import the Building Material XML into my Archicad project, the material appears with the correct name, but when I inspect
the material properties, they are either empty or showing default values instead of the values I specified in the XML.
What I've tried:
Specific questions:
Im using AI to understand how, but i need instructions maybe elsewhere. Ive added some files too, what i generate.
Operating system used: Windows
2025-10-03 02:17 PM
Hello @RahiLo ?
maybe you already know but it's easy to forget. When you export the Attributes XML from Archicad. There is a extra folder created that is called "addpars" ... there Archicad exports an extra XML for each material, that contains the part of the Values that are used by the Cinema4D render engine.
most probably it's not going to solve your problem, but maybe it helps
Gabriel
2025-10-06 10:51 AM
Yes, im aware of that. I skip that part.
Im wondering how to make it work so we can write new materials by code and import them via XML. Is there some secret behind there, logic etc.. Hard to know because i cannot find any documentation on how ArchiCAD generates and reads XML, what are the vital fields.
2025-10-06
04:58 PM
- last edited on
2025-10-11
07:35 PM
by
Laszlo Nagy
At the end of this Video (40.57) there is a comment of that and from 34:45 is adressing Pyton to Edit attributes (the entire Video is really recommended)
The dark side of Attribute Chaos in Archicad with Scott J Moore
I'm learning now how to use Python but I create Attributes through editing XMLs directly in a Visual Table Editor.
Normally there are a minimum of Properties you need to define so that Archicad accept the Attribute and define the rest automatically.
Here a Screenshot of how I see the XML in my XML editor. The Red X don't need to be defined because Archicad reads the 2 Fields with the Green Check-Symbol. For all the Others it would be necessary to create a new Material manually and add one after the others the Values until Archicad accepts it.
I think there is no documentation about the minimum necessary to create the Attributes by code