We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2021-01-19 06:30 AM - last edited on 2021-09-14 01:34 PM by Noemi Balogh
2021-01-28 07:58 AM
2021-02-02 01:46 PM
poco2013 wrote:
Sorry -- Picked the wrong function!!
space_classification_item = acu.FindClassificationItemInSystem( 'ARCHICAD Classification', 'Space') element_ids = acc.GetElementsByClassification(space_classification_item.classificationItemId) print(element_ids)
Once you have your element list, you can iterate through to find the element with the properties you want or match them to a specific element type?
2021-02-02 04:13 PM
elements = acc.GetElementsByType('Object') top_class = acu.FindClassificationSystem('ARCHICAD Classification') item_class = acu.FindClassificationItemInSystem('ARCHICAD Classification','System Furniture') class_id = act.ClassificationId(top_class,item_class.classificationItemId) elem_classes = [] for element in elements: elem_class = act.ElementClassification(element.elementId,class_id) elem_classes.append(elem_class) acc.SetClassificationsOfElements(elem_classes)
2021-02-02 06:03 PM
poco2013 wrote:Thx, structuring the class hierarchy helps. I will dig deeper and see where I get with this!
Might be a easier way:
2023-03-16 04:11 PM
can you please provide the website? I can't find videos on https://graphisoft.com/downloads/python
2023-03-16 04:24 PM
The link to the videos are in the PDF of each script examples.
NB: I made a little introduction to the archicad/python connection here if you are a beginner on the subject: https://community.graphisoft.com/t5/Developer-forum/PYTHON-Introduction-to-the-Archicad-Python-conne...
2023-03-16 05:33 PM
Thank you, Mathias.
I have another question here: https://community.graphisoft.com/t5/Developer-forum/Getting-all-property-values-of-type-Door-from-Ar...
would appreciate any kind of help))