This question already has an answer here:

I'd like to use PyQGIS to run algorithms from the toolbox in QGIS 2.99 but runalg does not seem to be known.

For instance, the following would generate a grid in QGIS 2.18:

processing.runalg('qgis:creategrid', 1, '467009.285713,480668.436073,5610112.91342,5615790.0642', 500, 500, r'EPSG:25832',r'D:\tobedeleted\trash\grid.shp')

But now it gives me:

AttributeError: module 'processing' has no attribute 'runalg'

I checked the QGIS 3 API breaks for processing and although methods like alglist were removed it does not mention runalg.

marked as duplicate by artwork21, Community Nov 17 '17 at 13:25

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.