3

Whenever I run a model in QGIS there is a dialog box asking for the set parameters. There the option "open output file after running algorithm" is always checked.

is there a setting to have this box always unchecked?

I have checked if there is something in the Options-Processing menu but found nothing. My best bet is that I have to change some value in the Advanced option, but I don't know how the dialog box is named in the QGIS environment. Any ideas?

enter image description here

Vince
20.5k16 gold badges49 silver badges65 bronze badges
asked Jul 21, 2022 at 10:58
1
  • did you find out how to achieve this ? I am looking also for the answer. Commented Feb 17, 2023 at 10:37

1 Answer 1

1

You need to export your model as a Python script. export model button

In the code you will find that each output parameter has createByDefault=True in its instantiator, for example:

self.addParameter(QgsProcessingParameterFeatureSink('verwalt', 'Verwaltungsgrenzen', type=QgsProcessing.TypeVectorPolygon, createByDefault=True, defaultValue=None))
self.addParameter(QgsProcessingParameterFeatureSink('infra', 'Infrastrukturen', type=QgsProcessing.TypeVectorPolygon, createByDefault=True, defaultValue=None))
self.addParameter(QgsProcessingParameterFeatureSink('bauten', 'Bauten', type=QgsProcessing.TypeVectorPolygon, createByDefault=True, defaultValue=None))

Just change createByDefault=True to createByDefault=False for the outputs you don't wan to automatically load

answered Feb 2, 2024 at 10:59

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.