2021-12-27 03:36 PM
Hello!
I just started couple of months ago finding my way with python in Archicad 24. I have some experience in python but definitely not enough as I keep having different problems with the export script (the one provided by Graphisoft).
With the basic script you can export Element properties very easily to an excel sheet. But as soon as I change the script to get a random material property, the script gives an error. The material property is randomly chosen after getting the full list with python as well. The last line has been added to get the 'Material Property'.
propertyUserIds = [
act.BuiltInPropertyUserId("General_ElementID"),
act.BuiltInPropertyUserId("General_Height"),
act.BuiltInPropertyUserId("General_Width"),
act.BuiltInPropertyUserId("General_Thickness"),
act.UserDefinedPropertyUserId([
"COMBUSTION (Materials)", "CO2 Content"])
]
2021-12-28 11:52 PM
IME, python is just a longhand work-around to make basic functions less effective... I'm sure the tool is useful, as I read enough people saying they use it for scripting template management, file migration, file maintenance functions. But it's beyond me why I should bother with python TBH
2021-12-30 05:17 PM
I do follow your opinion but in this case, exporting properties through python would be just one step of a whole proces. A proces to sustainability that could be automated. And that's why here, there's no other way than to use python.