<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Unable to import Project Information using PLCopenXML</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d25548842b/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d25548842b/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/d25548842b/</id><updated>2020-02-27T13:48:22.679000Z</updated><subtitle>Recent posts to Unable to import Project Information using PLCopenXML</subtitle><entry><title>Unable to import Project Information using PLCopenXML</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d25548842b/?limit=25#02df" rel="alternate"/><published>2020-02-27T13:48:22.679000Z</published><updated>2020-02-27T13:48:22.679000Z</updated><author><name>Frank Jepsen</name><uri>https://forge.codesys.com/u/frank-jepsen/</uri></author><id>https://forge.codesys.coma06e814f8e990453ef10c07f08c428e5f0f6f81d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I can see your reasoning TimvH. &lt;/p&gt;
&lt;p&gt;Sadly, I am in the less common situation where I would like to import project information. The reason for that is that I am working on an auto-build environment, where a server creates libraries/projects and puts together code. The project information object is not yet accesible via script engine, but is needed especially to give libraries increasing version number. I was trying to use import function as a work-around. (see original post here:  l &lt;a class="" href="http://forum-en.3s-software.com/viewtopic.php?f=18&amp;amp;t=4875" rel="nofollow"&gt;viewtopic.php?f=18&amp;amp;t=4875&lt;/a&gt; l )&lt;/p&gt;
&lt;p&gt;I guess the best solution for me then is to wait for CDS-28415 (ScriptEngine: Script Interface for Project Information) to be planned and implemented.&lt;/p&gt;
&lt;p&gt;Thanks for your time to clarify this matter.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Frank&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Unable to import Project Information using PLCopenXML</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d25548842b/?limit=25#95e4" rel="alternate"/><published>2020-02-27T13:48:22.582000Z</published><updated>2020-02-27T13:48:22.582000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com2f849e9cd3c4ba56debed83941686c506699fcf8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;During the import you get a tab with additional information which gives you, amongst others, the project information.&lt;br/&gt;
Most of the time an import is only a partial project. In this case you don't want to overwrite the existing Project Information.&lt;br/&gt;
I can imagine that 3S-Software has decided that the Project Information is only informative, but isn't imported nor does it overwrite the existing information.&lt;/p&gt;
&lt;p&gt;In my opinion this is a logical situation.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Unable to import Project Information using PLCopenXML</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d25548842b/?limit=25#2320" rel="alternate"/><published>2020-02-27T13:48:22.488000Z</published><updated>2020-02-27T13:48:22.488000Z</updated><author><name>Frank Jepsen</name><uri>https://forge.codesys.com/u/frank-jepsen/</uri></author><id>https://forge.codesys.comb49d1687b322a1eb8c33b02d07ca8061a0bf9af6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You are right about the empty dialog. Now I get the result you see in the attached screenshot.  &lt;/p&gt;
&lt;p&gt;Then how do you import the Project Information object? &lt;/p&gt;
&lt;p&gt;The only way I can do that is by project archive; neither import nor import plcopenxml gives me that object. However, I can see that the information is available in the .export and .xml if I open them using a text editor.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: screenshot_after_project_import_v2.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=322"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Unable to import Project Information using PLCopenXML</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d25548842b/?limit=25#1ed1" rel="alternate"/><published>2020-02-27T13:48:22.391000Z</published><updated>2020-02-27T13:48:22.391000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com16ea3d083db895b428b6971f401b0f51af3f17ad</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am almost sure that the reason it doesn't work is because you haven't selected where it needs to be inserted.&lt;br/&gt;
Please open your empty project and click on your project name (in your case demo2 or Untitled2 in the Devices View).&lt;br/&gt;
After this CoDeSys knows where you want to import the objects to.&lt;/p&gt;
&lt;p&gt;In my case when I don't do this, I also get the same result as you.&lt;br/&gt;
When I select it, it works fine.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Unable to import Project Information using PLCopenXML</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d25548842b/?limit=25#38a9" rel="alternate"/><published>2020-02-27T13:48:22.291000Z</published><updated>2020-02-27T13:48:22.291000Z</updated><author><name>Frank Jepsen</name><uri>https://forge.codesys.com/u/frank-jepsen/</uri></author><id>https://forge.codesys.coma3a1d0191eea7ea374dd469ba63fb04fe09ae6ae</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have created a new demo project now, with your correction to the program code. All files are in the attached zip-file - including the project archive, which I also uploaded in the first example. &lt;br/&gt;
This time the example is a library and I have installed V3.5 Patch 4, so there should be no problems loading it.&lt;/p&gt;
&lt;p&gt;As you can see in the screenshots (in the attached file), I still have problems importing the project:&lt;br/&gt;
- When using Project Archive I can import Library Manager, POU, and Project Information objects. (no problems)&lt;br/&gt;
- When using PLCopenXML I can import Library Manager and POU objects. (some problems)&lt;br/&gt;
- When using Import/Export I cannot import because I get an "empty" dialog. (larger problems)&lt;/p&gt;
&lt;p&gt;Could you provide me with the .export and .xml files that works fine for you?&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=321" rel="nofollow"&gt;demo2.zip &lt;span&gt;&lt;span&gt;[734.63 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Unable to import Project Information using PLCopenXML</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d25548842b/?limit=25#b71a" rel="alternate"/><published>2020-02-27T13:48:22.193000Z</published><updated>2020-02-27T13:48:22.193000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.comfaa246db742510ef8d97f32230127c0e2b4b771d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I also cannot import your files, because I don't have the 3.5 P3 Control Win Device. Please always save your project as project archive.&lt;br/&gt;
When I export your project and import it again, it works (I use 3.5 P4) both with general as XML method.&lt;br/&gt;
With the XML method it creates a new device.&lt;br/&gt;
With the general method it asks you to overwrite the existing device.&lt;/p&gt;
&lt;p&gt;PS, your declaration of the variable is not correct. Change it to e.g.:&lt;br/&gt;
PROGRAM POU&lt;br/&gt;
VAR&lt;br/&gt;
    i &lt;strong&gt;: INT&lt;/strong&gt; := 1;&lt;br/&gt;
END_VAR&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Unable to import Project Information using PLCopenXML</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d25548842b/?limit=25#b5e1" rel="alternate"/><published>2020-02-27T13:48:21.824000Z</published><updated>2020-02-27T13:48:21.824000Z</updated><author><name>Frank Jepsen</name><uri>https://forge.codesys.com/u/frank-jepsen/</uri></author><id>https://forge.codesys.comaef487e7a8de5f830fc259a66a7579abbc25b1a4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi TimvH,&lt;/p&gt;
&lt;p&gt;I tried using export/import also, but using that method I cannot import anything at all. I have attached the files that I used for testing if you want to check them. When I test import function (either native or PLCopenXML) I create an empty project and tries to import either the .export or .xml.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Frank&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=319" rel="nofollow"&gt;demo.zip &lt;span&gt;&lt;span&gt;[155.64 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Unable to import Project Information using PLCopenXML</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d25548842b/?limit=25#cbee" rel="alternate"/><published>2020-02-27T13:48:21.723000Z</published><updated>2020-02-27T13:48:21.723000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.comcf08f2642a29fd14364223aece714acdc65a1280</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;It is known that the XML im- export is not as complete as the general im- export.&lt;br/&gt;
If you want to have all information I think you should use this method of im- and export.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Unable to import Project Information using PLCopenXML</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d25548842b/?limit=25#853b" rel="alternate"/><published>2020-02-27T13:48:21.625000Z</published><updated>2020-02-27T13:48:21.625000Z</updated><author><name>Frank Jepsen</name><uri>https://forge.codesys.com/u/frank-jepsen/</uri></author><id>https://forge.codesys.com9c23e6af699135a5e6c133b87590d44736b5fb4d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;No CoDeSys people that has any comments for this one?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Unable to import Project Information using PLCopenXML</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d25548842b/?limit=25#95f8" rel="alternate"/><published>2020-02-27T13:48:21.553000Z</published><updated>2020-02-27T13:48:21.553000Z</updated><author><name>Frank Jepsen</name><uri>https://forge.codesys.com/u/frank-jepsen/</uri></author><id>https://forge.codesys.coma887a47715042c1576771c5e6863e6cabc89da94</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I and trying to export project as PLCopenXML and import it again. In that process I loose the project information, even though I can see the information in XML file.&lt;/p&gt;
&lt;p&gt;M.Schaber from scripting forum suggested that someone in this forum might be able to help, since this is a problem both when using script and using GUI. ( l &lt;a class="" href="http://forum-en.3s-software.com/viewtopic.php?f=18&amp;amp;t=4875" rel="nofollow"&gt;viewtopic.php?f=18&amp;amp;t=4875&lt;/a&gt; l )&lt;/p&gt;
&lt;p&gt;Steps to reproduce:&lt;br/&gt;
1) Open project containing Company, Title, and Version in Project information&lt;br/&gt;
2) Projects -&amp;gt; Export PLCopenXML -&amp;gt; Select all&lt;br/&gt;
3) Verify that Project information is written to XML file&lt;br/&gt;
4) Close current project&lt;br/&gt;
5) New project -&amp;gt; Empty project&lt;br/&gt;
6) Projects -&amp;gt; Import PLCopenXML -&amp;gt; Choose exported file&lt;br/&gt;
7) Verify that Project information of original project is present under Additional information&lt;br/&gt;
8 ) See that Project information object is not created in project after import&lt;/p&gt;
&lt;p&gt;Is this a known issue or maybe it is a general limitation?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
Frank&lt;/p&gt;
&lt;p&gt;EDIT: Forgot to tell that CoDeSys is version 3.5 Patch 3&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>