License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…

Archicad Python API
About automating tasks in Archicad using the Python API.

python run script on selected elements

Ady84a
Booster

Hello everyone,

 

is there a way to run the python script only on the selected elements ?

 

best regards,

5 REPLIES 5
poco2013
Mentor

@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.

Gerry

Windows 11 - Visual Studio 2022; ArchiCAD 27

Thank you Gerry, I was afraid of that... 

Isn't that a severe lack of feature?

Martin Isak Jansen
(I'm the one everyone at my company asks the tech questions)
www.artec.no

yes. a very simple logical feature is to be able to select things and run the script on. 

I made a new thread in the wishes forum about this.

https://community.graphisoft.com/t5/Wishes-forum/Run-python-script-on-selected-elements/m-p/321441#M...

Martin Isak Jansen
(I'm the one everyone at my company asks the tech questions)
www.artec.no