<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Updating project archives</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/cd8a5ea462/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/cd8a5ea462/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/cd8a5ea462/</id><updated>2020-02-27T14:47:11.193000Z</updated><subtitle>Recent posts to Updating project archives</subtitle><entry><title>Updating project archives</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/cd8a5ea462/?limit=25#ea31" rel="alternate"/><published>2020-02-27T14:47:11.193000Z</published><updated>2020-02-27T14:47:11.193000Z</updated><author><name>etamgul</name><uri>https://forge.codesys.com/u/etamgul/</uri></author><id>https://forge.codesys.com279b4d3de75e1cbe83354f4605c504e49988c3bd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you I was experimenting with this when I found your answer,&lt;br/&gt;
 that what exactly what I was looking for.&lt;br/&gt;
Thanks again!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Updating project archives</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/cd8a5ea462/?limit=25#9759" rel="alternate"/><published>2020-02-27T14:47:10.611000Z</published><updated>2020-02-27T14:47:10.611000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.comf57fc1994876b06298d736c3702ee33a9a1d8d64</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You could use one of the methods from system.ui to show a message box. For example:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;system&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ui&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;info&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="ss"&gt;"Please update ..."&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;You can also open the "Project Environment" dialog with:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;system&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;commands&lt;/span&gt;&lt;span class="p"&gt;[(&lt;/span&gt;&lt;span class="ss"&gt;"project"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ss"&gt;"checkavailableversions"&lt;/span&gt;&lt;span class="p"&gt;)].&lt;/span&gt;&lt;span class="k"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;I forgot to ask if you use the CODESYS Test Manager. The Test Manager supports the update of the compiler version, library version and the visu profile.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Updating project archives</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/cd8a5ea462/?limit=25#2ec0" rel="alternate"/><published>2020-02-27T14:47:09.041000Z</published><updated>2020-02-27T14:47:09.041000Z</updated><author><name>etamgul</name><uri>https://forge.codesys.com/u/etamgul/</uri></author><id>https://forge.codesys.coma0697ed143eac521daa847c56e760278e0c2eabf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thanks for the answer, is there any chance to do it semi-automated? &lt;br/&gt;
I'm thinking on a solution to open the project archives by script, do the managable changes, then ask the user to finish the settings&lt;br/&gt;
and save, close. My script then would wait till projects.all gets empty (none project is open) and would reopen the user saves project file&lt;br/&gt;
and export or save it as project archive.&lt;/p&gt;
&lt;p&gt;So something similar:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt; &lt;span class="nv"&gt;proj&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;projects&lt;/span&gt;.&lt;span class="nv"&gt;open_archive&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;...&lt;span class="ss"&gt;)&lt;/span&gt;
   # &lt;span class="k"&gt;do&lt;/span&gt; &lt;span class="nv"&gt;some&lt;/span&gt; &lt;span class="nv"&gt;automated&lt;/span&gt; &lt;span class="nv"&gt;changes&lt;/span&gt;
   &lt;span class="nv"&gt;notify_usr_to_do_manual_changes&lt;/span&gt;&lt;span class="ss"&gt;()&lt;/span&gt;
   &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="nv"&gt;len&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;projects&lt;/span&gt;.&lt;span class="nv"&gt;all&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;:
     &lt;span class="nv"&gt;system&lt;/span&gt;.&lt;span class="nv"&gt;delay&lt;/span&gt;&lt;span class="ss"&gt;()&lt;/span&gt; # &lt;span class="nv"&gt;this&lt;/span&gt; &lt;span class="nv"&gt;currently&lt;/span&gt; &lt;span class="nv"&gt;blocks&lt;/span&gt; &lt;span class="nv"&gt;my&lt;/span&gt; &lt;span class="nv"&gt;access&lt;/span&gt; &lt;span class="nv"&gt;to&lt;/span&gt; &lt;span class="nv"&gt;GUI&lt;/span&gt;, &lt;span class="nv"&gt;is&lt;/span&gt; &lt;span class="nv"&gt;there&lt;/span&gt; &lt;span class="nv"&gt;an&lt;/span&gt; &lt;span class="nv"&gt;async&lt;/span&gt; &lt;span class="nv"&gt;function&lt;/span&gt; &lt;span class="nv"&gt;to&lt;/span&gt; &lt;span class="nv"&gt;somehow&lt;/span&gt; &lt;span class="nv"&gt;put&lt;/span&gt; &lt;span class="nv"&gt;the&lt;/span&gt; &lt;span class="nv"&gt;script&lt;/span&gt; &lt;span class="nv"&gt;in&lt;/span&gt; &lt;span class="nv"&gt;background&lt;/span&gt; &lt;span class="nv"&gt;and&lt;/span&gt; &lt;span class="nv"&gt;let&lt;/span&gt; &lt;span class="nv"&gt;the&lt;/span&gt; &lt;span class="nv"&gt;user&lt;/span&gt; &lt;span class="nv"&gt;to&lt;/span&gt; &lt;span class="nv"&gt;access&lt;/span&gt; &lt;span class="nv"&gt;the&lt;/span&gt; &lt;span class="nv"&gt;GUI&lt;/span&gt;?
 #&lt;span class="nv"&gt;usr&lt;/span&gt; &lt;span class="nv"&gt;saved&lt;/span&gt; &lt;span class="nv"&gt;and&lt;/span&gt; &lt;span class="nv"&gt;closed&lt;/span&gt; &lt;span class="nv"&gt;everything&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;reopen&lt;/span&gt; &lt;span class="nv"&gt;the&lt;/span&gt; &lt;span class="nv"&gt;project&lt;/span&gt; &lt;span class="nv"&gt;to&lt;/span&gt; &lt;span class="nv"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;it&lt;/span&gt; &lt;span class="nv"&gt;as&lt;/span&gt; &lt;span class="nv"&gt;archive&lt;/span&gt;
 &lt;span class="nv"&gt;proj&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;projects&lt;/span&gt;.&lt;span class="nv"&gt;open&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;temp&lt;/span&gt;.&lt;span class="nv"&gt;project&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;
 &lt;span class="nv"&gt;proj&lt;/span&gt;.&lt;span class="nv"&gt;save_archive&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;proj_name&lt;/span&gt;.&lt;span class="nv"&gt;archive&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>Updating project archives</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/cd8a5ea462/?limit=25#aeb5" rel="alternate"/><published>2020-02-27T14:47:08.485000Z</published><updated>2020-02-27T14:47:08.485000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.com0a88c72a742b2b7d8cba4f6556ff3838d16e6b53</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi etamgul.&lt;/p&gt;
&lt;p&gt;Right now, this is not yet possible, but this improvement is already listed in our Jira tracker &lt;a class="" href="http://jira.3s-software.com/browse/CDS-34105" rel="nofollow"&gt;CDS-34105&lt;/a&gt;, so it will be implemented eventually.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Updating project archives</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/cd8a5ea462/?limit=25#5c91" rel="alternate"/><published>2020-02-27T14:47:06.941000Z</published><updated>2020-02-27T14:47:06.941000Z</updated><author><name>etamgul</name><uri>https://forge.codesys.com/u/etamgul/</uri></author><id>https://forge.codesys.com3fe456e9e418b783852187a8f73a3d4af0d25b79</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have a set of project archives, but with time they get outdated so I currently use a script to iterate and update the device version,&lt;br/&gt;
basically opening the project archive, device.update(version) and saving the project as archive.&lt;/p&gt;
&lt;p&gt;This sort of works but I also would like to update the compiler version to the newest, if possible.&lt;br/&gt;
When I open the archive with codesys GUI it asks me if I want to use the latest or older ones, but I don't &lt;br/&gt;
get a message when the script is executed.&lt;/p&gt;
&lt;p&gt;Is it even possible? If so which interface should I use?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>