<div dir="ltr">Hi Hannes, <div><br></div><div>Thanks for your answer.</div><div>The names are unique. But the problem is not that one atlas layout is overwriting another, they're overwriting themselves. Ik only get the last page of each atlas. </div><div>While the atlas is exporting, I can see in the windows explorer that a file is made and then reset to 0, only the last atlas page is kept. </div><div><br></div><div>Greetings </div><div>Wouter</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op ma 20 dec. 2021 om 09:28 schreef Johannes Kröger (WhereGroup) <<a href="mailto:johannes.kroeger@wheregroup.com">johannes.kroeger@wheregroup.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Hey Wouter,</p>
<p>what is the atlas' expression for the filenames? Make sure they
are unique, iterating and/or writing to a unique directory.</p>
<p>Cheers, Hannes</p>
<br>
<div>Am 18.12.21 um 18:51 schrieb Wouter
Impens:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<p class="MsoNormal"><span style="font-size:10pt">Dear list,
<span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt"> </span></p>
<p class="MsoNormal"><span style="font-size:10pt" lang="EN-US">When using the ‘maps printer’ plugin for a
bunch of atlas layouts, the
atlas pages are constantly overwritten by the next page,
so I end up with only
the last page in the atlas layout. <span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt" lang="EN-US">I used this before and it was working
perfectly. <span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt" lang="EN-US">I also tried with the following script: <span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt" lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size:10pt" lang="EN-US">import qgis.core<span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt" lang="EN-US">layouts_list =
QgsProject.instance().layoutManager().printLayouts()<span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt" lang="EN-US">for layout in layouts_list:<span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt" lang="EN-US"> QgsLayoutExporter.exportToPdfs(layout.atlas(), <span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt" lang="EN-US"> 'C:\\Users\\d08909\\Documents\\01_WERKMAP\\03_EXPORT\\', <span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt" lang="EN-US"> QgsLayoutExporter.PdfExportSettings())<span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt" lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size:10pt" lang="EN-US">But it’s giving me the same result. <span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt" lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size:10pt" lang="EN-US">Manually exporting the altlas layouts one
by one is no problem. <span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt" lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size:10pt" lang="EN-US">I’m using QGIS 3.16.14 on windows. <span></span></span></p>
<p class="MsoNormal" style="margin-bottom:8pt;line-height:11.75pt"><span style="font-size:10pt;color:black" lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom:8pt;line-height:11.75pt"><span style="font-size:10pt;color:black">Any help is
apreciated!<span></span></span></p>
<p class="MsoNormal" style="margin-bottom:8pt;line-height:11.75pt"><span style="font-size:10pt;color:black"> </span></p>
<p class="MsoNormal" style="margin-bottom:8pt;line-height:11.75pt"><span style="font-size:10pt;color:black">Kind regards, <span></span></span></p>
<p class="MsoNormal" style="margin-bottom:8pt;line-height:11.75pt"><span style="font-size:10pt;color:black">Wouter Impens</span></p>
</div>
</div>
</div>
</blockquote>
<br>
</div>
</blockquote></div>