<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How to Create Archive (SDK question)</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/eb72c5fe7d/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/eb72c5fe7d/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/eb72c5fe7d/</id><updated>2020-02-27T13:51:47.624000Z</updated><subtitle>Recent posts to How to Create Archive (SDK question)</subtitle><entry><title>How to Create Archive (SDK question)</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/eb72c5fe7d/?limit=25#b5ab" rel="alternate"/><published>2020-02-27T13:51:47.624000Z</published><updated>2020-02-27T13:51:47.624000Z</updated><author><name>BobbieB</name><uri>https://forge.codesys.com/u/bobbieb/</uri></author><id>https://forge.codesys.comb7308b989102afd1e282f27839a88f79d313c0e6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for your help. Ive figure out how to create an archive and it appears to work well.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to Create Archive (SDK question)</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/eb72c5fe7d/?limit=25#846a" rel="alternate"/><published>2020-02-27T13:51:47.428000Z</published><updated>2020-02-27T13:51:47.428000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.com0a6323f881b96c7bcf91e3c889bbdb7b17aa21b5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi BobbieB.&lt;/p&gt;
&lt;p&gt;There is no system instance for IProjectArchiveService in CODESYS. You have to create your own instance of the "service" with CreateInstance(). &lt;/p&gt;
&lt;p&gt;For CODESYS V3.5 SP5 or older:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;IProjectArchiveService&lt;/span&gt; &lt;span class="n"&gt;pas&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;IProjectArchiveService&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="n"&gt;ComponentManager&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Singleton&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;CreateInstance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;Guid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="ss"&gt;"{F23B52AD-F5EC-4785-BC13-F1FB7F998DB5}"&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;For CODESYS V3.5 SP6 or newer:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;IProjectArchiveService&lt;/span&gt; &lt;span class="n"&gt;pas&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ComponentManager&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Singleton&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;CreateInstance&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;IProjectArchiveService&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;Guid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="ss"&gt;"{F23B52AD-F5EC-4785-BC13-F1FB7F998DB5}"&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to Create Archive (SDK question)</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/eb72c5fe7d/?limit=25#2021" rel="alternate"/><published>2020-02-27T13:51:46.917000Z</published><updated>2020-02-27T13:51:46.917000Z</updated><author><name>BobbieB</name><uri>https://forge.codesys.com/u/bobbieb/</uri></author><id>https://forge.codesys.comdfdacff8e047600cef208ced1131a0868a0dd69c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ive looked at the SDK help file, and Im trying to figure out how to make an instance of "_3S.CoDeSys.ProjectArchive.IProjectArchiveService"&lt;br/&gt;
so I can Archive the currently loaded project.&lt;br/&gt;
Can some one help or send me an example.&lt;/p&gt;
&lt;p&gt;Ive tried the following, which didnt work (C#)&lt;/p&gt;
&lt;p&gt;var archiveService = ComponentManager.Singleton.InstanceFactory.GetSystemInstance(typeof(_3S.CoDeSys.ProjectArchive.IProjectArchiveService).FullName);&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>