<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Get/Set project information</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7bda41a618/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7bda41a618/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/7bda41a618/</id><updated>2020-02-27T15:03:42.594000Z</updated><subtitle>Recent posts to Get/Set project information</subtitle><entry><title>Get/Set project information</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7bda41a618/?limit=25#c870" rel="alternate"/><published>2020-02-27T15:03:42.594000Z</published><updated>2020-02-27T15:03:42.594000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com8312c39587f5b863872950ecd82785ffc6943ffa</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;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Frank Jepsen hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
I tried creating a project with some content and project information, exported it and imported it again. The project information goes into the XML I can see, but I cannot load the project information again; only the other content is loaded. Is this a known issue?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I'm not that deep into the export/import function details so I'm afraid I cannot answer that question. If the same problem appears when importing manually via the menu, maybe the general forum can help you. Or you can always fall back to our support department.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get/Set project information</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7bda41a618/?limit=25#ea14" rel="alternate"/><published>2020-02-27T15:03:41.993000Z</published><updated>2020-02-27T15:03:41.993000Z</updated><author><name>Frank Jepsen</name><uri>https://forge.codesys.com/u/frank-jepsen/</uri></author><id>https://forge.codesys.comf15c9437507a9f374712c4b13bb706fec6cdd87c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;M.Schaber hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
...&lt;br/&gt;
Maybe you can utilize the native or PLCOpenXML export/import for that workaround.&lt;br/&gt;
...&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I have now tried that and cannot get it to work unfortunately. &lt;/p&gt;
&lt;p&gt;I tried creating a project with some content and project information, exported it and imported it again. The project information goes into the XML I can see, but I cannot load the project information again; only the other content is loaded. Is this a known issue?&lt;/p&gt;
&lt;p&gt;The workaround I hoped for was exporting to PLCOpenXML, edit XML using scripts, and import it again.&lt;/p&gt;
&lt;p&gt;Now it seems that I have to resort to my previous "workaround", where I have used an auto-mouse/keyboard-clicker to automatically click around in the GUI.   (even though this it not a very stable solution)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get/Set project information</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7bda41a618/?limit=25#3971" rel="alternate"/><published>2020-02-27T15:03:41.378000Z</published><updated>2020-02-27T15:03:41.378000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com90e31c67ca921242542e86d4399aeacc34d83fe5</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;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Frank Jepsen hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Ok. Then I will have to make a workaround for now.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Maybe you can utilize the native or PLCOpenXML export/import for that workaround.&lt;/p&gt;
&lt;p&gt;HTH,&lt;br/&gt;
Markus&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get/Set project information</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7bda41a618/?limit=25#6e8a" rel="alternate"/><published>2020-02-27T15:03:39.679000Z</published><updated>2020-02-27T15:03:39.679000Z</updated><author><name>Frank Jepsen</name><uri>https://forge.codesys.com/u/frank-jepsen/</uri></author><id>https://forge.codesys.comea683acb1c7832e2393e97ace3e93fd0485871e3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi M.Schaber,&lt;/p&gt;
&lt;p&gt;Ok. Then I will have to make a workaround for now.&lt;/p&gt;
&lt;p&gt;I will try to create a feature request for it.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
Frank&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get/Set project information</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7bda41a618/?limit=25#b059" rel="alternate"/><published>2020-02-27T15:03:39.042000Z</published><updated>2020-02-27T15:03:39.042000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com451aa103ec49c44a7e7a85c401813146e8b76954</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;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Frank Jepsen hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
I am trying to get/set project information using scripts.&lt;br/&gt;
I can find the "Project information" object using:&lt;/p&gt;
&lt;/blockquote&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;snipped&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;I cannot find information on the object in ScriptEngine.chm. Can anyone help me here? Or is the object with project information simply not supported yet?&lt;/p&gt;
&lt;p&gt;Currently, this object is not supported yet.&lt;/p&gt;
&lt;p&gt;I propose that you file this as a feature request via our support department.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get/Set project information</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7bda41a618/?limit=25#cf23" rel="alternate"/><published>2020-02-27T15:03:38.421000Z</published><updated>2020-02-27T15:03:38.421000Z</updated><author><name>Frank Jepsen</name><uri>https://forge.codesys.com/u/frank-jepsen/</uri></author><id>https://forge.codesys.comc9b37346889bc58429ef666711767e6ed777bd5b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am trying to get/set project information using scripts.&lt;/p&gt;
&lt;p&gt;I can find the "Project information" object using:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;__future__&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;print_function&lt;/span&gt;
\&lt;span class="c1"&gt;# define the printing function&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;tree&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;treeobj&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;depth&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;treeobj&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get_name&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;False&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"Project information"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt; &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt; &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;treeobj&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get_children&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Count&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt; 
\&lt;span class="c1"&gt;# start looking in primary project&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;obj&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;projects&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;primary&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get_children&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="n"&gt;tree&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;obj&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;I cannot find information on the object in ScriptEngine.chm. Can anyone help me here? Or is the object with project information simply not supported yet?&lt;/p&gt;
&lt;p&gt;// Frank&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>