python run script on selected elements

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-11-16 04:38 PM
Hello everyone,
is there a way to run the python script only on the selected elements ?
best regards,
- Labels:
-
Automation (Python or JSON)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-11-16 09:03 PM
@Ady84a wrote:Hello everyone,
is there a way to run the python script only on the selected elements ?
best regards,
No -- That ability was removed from the Python API in Archicad release 24. An alternate workaround, probably unacceptable, is to interrogate for the status of a custom property to identify which element is of interest.
Windows 11 - Visual Studio 2022; ArchiCAD 27

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-11-16 09:07 PM
Thank you Gerry, I was afraid of that...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-11-17 08:30 AM
Isn't that a severe lack of feature?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-11-17 09:31 AM
yes. a very simple logical feature is to be able to select things and run the script on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-11-17 10:58 AM
I made a new thread in the wishes forum about this.