Selecting elements with Python
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-01-19
06:30 AM
- last edited on
2021-09-14
01:34 PM
by
Noemi Balogh
is there an easy way to get all Zone elements in the same classification system or all walls in the same branch?
- Labels:
-
Automation (Python or JSON)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-01-28 07:58 AM
thx a lot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Hi, just curious if you have already tried to SetClassificationsOfElements, as this somehow tricking me at the moment. It requires the list of ElementClassification but I somehow don't get it right. Any help is appreciated!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
Windows 11 - Visual Studio 2022; ArchiCAD 27
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2023-03-16 04:11 PM
can you please provide the website? I can't find videos on https://graphisoft.com/downloads/python
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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))
- « Previous
-
- 1
- 2
- Next »
- « Previous
-
- 1
- 2
- Next »