<div dir="ltr"><div>Nyall,</div><div><br></div><div>Thanks so much. It works.</div><div><br></div><div>Calvin<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 28, 2018 at 7:11 PM, Nyall Dawson <span dir="ltr"><<a href="mailto:nyall.dawson@gmail.com" target="_blank">nyall.dawson@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, 29 Jun 2018 at 01:52, C Hamilton <<a href="mailto:adenaculture@gmail.com">adenaculture@gmail.com</a>> wrote:<br>
><br>
> 1. For the QgsProcessingAlgorithm you define 'name', 'displayName', 'group', and 'groupId'. The group creates a sub folder within my processing toolbox. What if I don't want a group sub folder within my toolbox. How do I have the algorithm on the first level?<br>
<br>
</span>That's not possible in <=3.2. I'm refactoring the toolbox currently,<br>
I'll add support for this for 3.4.<br>
<span class=""><br>
> 2. I am working on this for Shape Tools and not all the tools will be processing algorithms. I would like to be able to call the processing algorithm from my Shape Tools menu. I see no reason to programmatically create two interfaces for the algorithm. How can I launch the processing algorithm from the menu.<br>
<br>
</span>Call either<br>
<br>
    # populate with parameters you want to show in the dialog, if you<br>
want non-default values<br>
    initial_parameters = {}<br>
    results = processing.<wbr>execAlgorithmDialog('qgis:<wbr>buffer', initial_parameters)<br>
<br>
Or<br>
<br>
    # populate with parameters you want to show in the dialog, if you<br>
want non-default values<br>
    initial_parameters = {}<br>
    dlg =  processing.<wbr>createAlgorithmDialog('qgis:<wbr>buffer', initial_parameters)<br>
    # do something with dlg<br>
<br>
The difference is that execAlgorithmDialog handles automatically<br>
showing the dialog and return the algorithm results, while<br>
createAlgorithmDialog leaves it up to you to show and execute the<br>
dialog and retrieve the results.<br>
<span class="HOEnZb"><font color="#888888"><br>
Nyall<br>
</font></span></blockquote></div><br></div>