<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Publish option always true when adding library from script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/17752c240a/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/17752c240a/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/17752c240a/</id><updated>2020-02-27T15:00:40.725000Z</updated><subtitle>Recent posts to Publish option always true when adding library from script</subtitle><entry><title>Publish option always true when adding library from script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/17752c240a/?limit=25#3e53" rel="alternate"/><published>2020-02-27T15:00:40.725000Z</published><updated>2020-02-27T15:00:40.725000Z</updated><author><name>Frank Jepsen</name><uri>https://forge.codesys.com/u/frank-jepsen/</uri></author><id>https://forge.codesys.com6f2f95d2f393b8186270484d01d538b62f5b6c43</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Markus,&lt;/p&gt;
&lt;p&gt;Thanks for your answer - I am glad that you are able to reproduce the issue.  I have filed it to 3-S support by mail now.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Frank&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Publish option always true when adding library from script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/17752c240a/?limit=25#101f" rel="alternate"/><published>2020-02-27T15:00:40.016000Z</published><updated>2020-02-27T15:00:40.016000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com38012cffe7c2fa6c1f7391f545e9e5f12687d0ef</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; M.Schaber&lt;/p&gt;
&lt;p&gt;Hi, Frank,&lt;/p&gt;
&lt;p&gt;It seems that the publish option is true by default in the internal API, and the script driver just does not bother to set that option.&lt;/p&gt;
&lt;p&gt;As I'm currently out of office, and don't have access to our infrastructure, could you file this issue via the support contact?&lt;/p&gt;
&lt;p&gt;Thanks, and sorry for the inconvenience!&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Publish option always true when adding library from script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/17752c240a/?limit=25#d2a5" rel="alternate"/><published>2020-02-27T15:00:38.307000Z</published><updated>2020-02-27T15:00:38.307000Z</updated><author><name>Frank Jepsen</name><uri>https://forge.codesys.com/u/frank-jepsen/</uri></author><id>https://forge.codesys.comf0e7e32ed25af5d7b50e3cecd8a710c3f782c1b1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a problem when I want to add a library from script. When I add a library using the following script I always get the option "Publish all IEC symbols..." checked, and I do not want this option to be checked.  Even in CoDeSys Help file it says that you should be very cautions when checking this option, so I do not understand why it is checked as default.&lt;/p&gt;
&lt;p&gt;Is there a nice way I can avoid this or maybe change the property after adding library? I cannot find such options or objects in the script engine documentation.&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;primary&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="nv"&gt;member&lt;/span&gt; &lt;span class="nv"&gt;in&lt;/span&gt; &lt;span class="nv"&gt;proj&lt;/span&gt;.&lt;span class="nv"&gt;get_children&lt;/span&gt;&lt;span class="ss"&gt;()&lt;/span&gt;:
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nv"&gt;member&lt;/span&gt;.&lt;span class="nv"&gt;is_libman&lt;/span&gt;:
        &lt;span class="nv"&gt;libman&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;member&lt;/span&gt;
&lt;span class="nv"&gt;libman&lt;/span&gt;.&lt;span class="nv"&gt;add_library&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;LibraryA, 0.1 (kk-electronic)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;       
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;My current workaround is that I have to export a library manager manually with the desired libraries and I can then import it later using script. To change libraries I can then edit the .export using a text editor.  &lt;/p&gt;
&lt;p&gt;I have attached demo libraries, scripts, and screendump of publish option, if anyone wants to see exact files.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
Frank&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=375" rel="nofollow"&gt;CoDeSysTest.zip &lt;span&gt;&lt;span&gt;[89.22 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>