<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Add device to the device repository</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9a7246d45b/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9a7246d45b/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/9a7246d45b/</id><updated>2020-02-27T14:46:36.305000Z</updated><subtitle>Recent posts to Add device to the device repository</subtitle><entry><title>Add device to the device repository</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9a7246d45b/?limit=25#6a73" rel="alternate"/><published>2020-02-27T14:46:36.305000Z</published><updated>2020-02-27T14:46:36.305000Z</updated><author><name>Enchillada</name><uri>https://forge.codesys.com/u/enchillada/</uri></author><id>https://forge.codesys.com5a39d89e9e0aa3f385c499d374b09d7189d37aa2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all,&lt;br/&gt;
there is a solution for that issue  - not with python but able to automate complete.&lt;/p&gt;
&lt;p&gt;Check the CODESYS installation directory, in folder "Common" there is a file called "RepTool.exe".&lt;br/&gt;
This is very powerful and helped me to install / remove devices from the repository.&lt;/p&gt;
&lt;p&gt;Just call it from command line with argument "/help" and you get lots of options.&lt;/p&gt;
&lt;p&gt;May it will help you guys.&lt;/p&gt;
&lt;p&gt;Regards &lt;/p&gt;
&lt;p&gt;Jörg&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Add device to the device repository</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9a7246d45b/?limit=25#e1f9" rel="alternate"/><published>2020-02-27T14:46:34.765000Z</published><updated>2020-02-27T14:46:34.765000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com6e1d04d24b92db5bf0fadf7fea553ad4b4e8415d</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;br/&gt;
Hi, Edwin,&lt;/p&gt;
&lt;p&gt;Up-front: There exists &lt;a class="" href="http://jira.3s-software.com/browse/CDS-23707" rel="nofollow"&gt;CDS-23707&lt;/a&gt; &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Frank Jepsen hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
...&lt;br/&gt;
I am interested in this feature also, but I am not sure how you want to do the work-around with project archive. I can see that the project archive is in fact just a zip file, so would your "unofficial" advise be to change the device description zip file inside the project archive zip file? Or do you have a more nice way to manipulate the project archive?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The official way is to just create a project archive of a project which contains all the devices whose descriptions you want to add.&lt;/p&gt;
&lt;p&gt;"Inofficially", you may also succeed by just modifying an existing project archive and add all the device descriptions you need. I did not yet try this myself, however.&lt;/p&gt;
&lt;p&gt;HTH,&lt;br/&gt;
Markus&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Add device to the device repository</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9a7246d45b/?limit=25#38e2" rel="alternate"/><published>2020-02-27T14:46:34.228000Z</published><updated>2020-02-27T14:46:34.228000Z</updated><author><name>Frank Jepsen</name><uri>https://forge.codesys.com/u/frank-jepsen/</uri></author><id>https://forge.codesys.come82ba73921f758106e4cc5c60adc76bb8d340652</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 a lower risky way would be to manipulate the project archive by adding the device descriptions there. But that also only works with devdesc.xml files.&lt;br/&gt;
...&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am interested in this feature also, but I am not sure how you want to do the work-around with project archive. I can see that the project archive is in fact just a zip file, so would your "unofficial" advise be to change the device description zip file inside the project archive zip file? Or do you have a more nice way to manipulate the project archive?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
Frank&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Add device to the device repository</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9a7246d45b/?limit=25#f46a" rel="alternate"/><published>2020-02-27T14:46:33.691000Z</published><updated>2020-02-27T14:46:33.691000Z</updated><author><name>chab</name><uri>https://forge.codesys.com/u/chab/</uri></author><id>https://forge.codesys.com321191c4ffa7b60bf8dc6b3378c558c2a69e7642</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'll keep it mind.&lt;br/&gt;
Thank you for the warning.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Add device to the device repository</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9a7246d45b/?limit=25#efd9" rel="alternate"/><published>2020-02-27T14:46:32.172000Z</published><updated>2020-02-27T14:46:32.172000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comef575ac896dded0b62ab0c86376d3c6569bb3985</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, Edwin,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Edwin hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
I found another work-around: manipulate the Device Repository directly.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I have to advise against this way to work around &lt;/p&gt;
&lt;p&gt;It is not guaranteed to be backwards compatible with future versions of CoDeSys.&lt;/p&gt;
&lt;p&gt;Maybe a lower risky way would be to manipulate the project archive by adding the device descriptions there. But that also only works with devdesc.xml files.&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Add device to the device repository</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9a7246d45b/?limit=25#c124" rel="alternate"/><published>2020-02-27T14:46:31.622000Z</published><updated>2020-02-27T14:46:31.622000Z</updated><author><name>chab</name><uri>https://forge.codesys.com/u/chab/</uri></author><id>https://forge.codesys.com1777d276b5dbdc6785ad6c5cf158f9814b9cfe7f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you, Markus.&lt;/p&gt;
&lt;p&gt;I found another work-around: manipulate the Device Repository directly.&lt;br/&gt;
At least for devices that are specified in *.devdesc.xml files.&lt;/p&gt;
&lt;p&gt;At the location C:\Documents and Settings\All Users\Application Data\CoDeSys\Devices:&lt;br/&gt;
Copy *.devdesc.xml to the proper folder .\&amp;lt;type&amp;gt;\&amp;lt;id&amp;gt;\&amp;lt;version&amp;gt;\device.xml&lt;br/&gt;
Delete .\devicecache.xml&lt;br/&gt;
Re-start CoDeSys&lt;br/&gt;
Now the new device is available.&amp;lt;/version&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;/type&amp;gt;&lt;/p&gt;
&lt;p&gt;For devices that are specified in &lt;em&gt;.eds files, I did not find an automation option. &lt;br/&gt;
(The conversion from &lt;/em&gt;.eds file to *.devdesc.xml file is the bottelneck.)&lt;br/&gt;
I'll install these devices manually via the CoDeSys GUI.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
Edwin.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Add device to the device repository</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9a7246d45b/?limit=25#4472" rel="alternate"/><published>2020-02-27T14:46:31.038000Z</published><updated>2020-02-27T14:46:31.038000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com2c3e7c42fee99dd605fac34c34de7bcbe25c5c63</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, Edwin,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Edwin hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Is it possible to install devices (into the Device Repository) via a python script?&lt;br/&gt;
In another topic (&lt;a class="" href="http://forum-en.3s-software.com/viewtopic.php?f=18&amp;amp;t=1923&amp;amp;hilit=Install+library+in+V3" rel="nofollow"&gt;http://forum-en.3s-software.com/viewtopic.php?f=18&amp;amp;t=1923&amp;amp;hilit=Install+library+in+V3&lt;/a&gt;), I saw:&lt;/p&gt;
&lt;/blockquote&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="nv"&gt;repo&lt;/span&gt; &lt;span class="nv"&gt;in&lt;/span&gt; &lt;span class="nv"&gt;librarymanager&lt;/span&gt;.&lt;span class="nv"&gt;repositories&lt;/span&gt;:
...
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Is there something like a devicemanager.repositories?&lt;/p&gt;
&lt;p&gt;Currently, this is not possible yet. It's on our list of planned features, however.&lt;/p&gt;
&lt;p&gt;For now, there is a workaround: You can manually create a project archive containing the device, and then when the script extracts the project archive, the device should be installed automatically.&lt;/p&gt;
&lt;p&gt;HTH,&lt;br/&gt;
Markus&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Add device to the device repository</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9a7246d45b/?limit=25#1902" rel="alternate"/><published>2020-02-27T14:46:29.504000Z</published><updated>2020-02-27T14:46:29.504000Z</updated><author><name>chab</name><uri>https://forge.codesys.com/u/chab/</uri></author><id>https://forge.codesys.comde490c5791b26cd2f0ac4834508a66e0591d59ac</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Is it possible to install devices (into the Device Repository) via a python script?&lt;/p&gt;
&lt;p&gt;In another topic (&lt;a class="" href="http://forum-en.3s-software.com/viewtopic.php?f=18&amp;amp;t=1923&amp;amp;hilit=Install+library+in+V3" rel="nofollow"&gt;http://forum-en.3s-software.com/viewtopic.php?f=18&amp;amp;t=1923&amp;amp;hilit=Install+library+in+V3&lt;/a&gt;), I saw:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="nv"&gt;repo&lt;/span&gt; &lt;span class="nv"&gt;in&lt;/span&gt; &lt;span class="nv"&gt;librarymanager&lt;/span&gt;.&lt;span class="nv"&gt;repositories&lt;/span&gt;:
...
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Is there something like a devicemanager.repositories?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
Edwin.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>