<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to create_boot_application() and 'Save As' message-box pop up</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/44f5345956/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/44f5345956/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/44f5345956/</id><updated>2020-02-27T14:51:28.113000Z</updated><subtitle>Recent posts to create_boot_application() and 'Save As' message-box pop up</subtitle><entry><title>create_boot_application() and 'Save As' message-box pop up</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/44f5345956/?limit=25#7f01" rel="alternate"/><published>2020-02-27T14:51:28.113000Z</published><updated>2020-02-27T14:51:28.113000Z</updated><author><name>francois</name><uri>https://forge.codesys.com/u/francois/</uri></author><id>https://forge.codesys.comd326638c2261b5b29ad90662b38b76ca56a9ab10</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks M.Keller, works like a charm!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>create_boot_application() and 'Save As' message-box pop up</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/44f5345956/?limit=25#81e7" rel="alternate"/><published>2020-02-27T14:51:27.476000Z</published><updated>2020-02-27T14:51:27.476000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.com6b81ed634d84d3006508192bd40b7689d2b9dbca</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi francois.&lt;/p&gt;
&lt;p&gt;Use GenerateCode(appGuid, false, false) instead of Compile(...).&lt;/p&gt;
&lt;p&gt;Get the Visual Manager object below the application and, if the object supports the interface IVisualManagerObject4, use CreateVisualizationFiles(stPath, true).&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>create_boot_application() and 'Save As' message-box pop up</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/44f5345956/?limit=25#f459" rel="alternate"/><published>2020-02-27T14:51:25.780000Z</published><updated>2020-02-27T14:51:25.780000Z</updated><author><name>francois</name><uri>https://forge.codesys.com/u/francois/</uri></author><id>https://forge.codesys.comb53ee7ff8b5a408c239908bf652dc709cd44c422</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am trying to reproduce the same behaviour with the Automation Platform.&lt;br/&gt;
So far, everything is compiled and generated, except for the visu files.&lt;br/&gt;
Is there anyone that know how to export the visu files using the automation platform?&lt;/p&gt;
&lt;p&gt;What I have done so far:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;foreach&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;IApplicationObject5&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;applications&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="n"&gt;lmm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Compile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ApplicationGuid&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;IDownloadInfo&lt;/span&gt; &lt;span class="n"&gt;bootProjectInfo&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;lmm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;GetOfflineBootProjectInfo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ApplicationGuid&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;IOnlineApplication17&lt;/span&gt; &lt;span class="n"&gt;onlineApplication&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;onlineManager&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;GetApplication&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ApplicationGuid&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;IOnlineApplication17&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;using&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;BinaryWriter&lt;/span&gt; &lt;span class="n"&gt;writer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;BinaryWriter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;File&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;Open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;SAVE_PATH&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ApplicationName&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="ss"&gt;".app"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;FileMode&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;Create&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="n"&gt;onlineApplication&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;StreamDownloadCommand&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;writer&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="n"&gt;lmm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;UpdateDownloadContext&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ApplicationGuid&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="err"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Thanks!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>create_boot_application() and 'Save As' message-box pop up</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/44f5345956/?limit=25#cd81" rel="alternate"/><published>2020-02-27T14:51:25.190000Z</published><updated>2020-02-27T14:51:25.190000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com3cd9cbbed2e16636e833c89219c03c2cf733efe1</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, Francois,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;francois hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
I see that CDS-30520 has been marked a duplicated of CDS-22407, which is now released under 3.5 SP2.&lt;br/&gt;
It is now possible to use the IScriptApplication.create_boot_applicaton(String filename) method instead of using the onlineapp object.&lt;br/&gt;
This is great, except that the visu files containing the images, text lists and webvisu files are not generated.&lt;br/&gt;
The compilation context is also not saved&lt;br/&gt;
Is there a simlar way to get those by specifying the path?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;In our issue &lt;a class="" href="http://jira.3s-software.com/browse/CDS-38204" rel="nofollow"&gt;CDS-38204&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The create_boot_application will be ammended with two new parameters:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Zitat:&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;create_boot_application&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;output_filename&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;update_compile_info&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;write_visu_files&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;If the project was changed since the last download or online change to a PLC, and you create a boot application with update_compile_info set to True, this will overwrite the current compiler reference context with the one matching the boot project (which no longer matches the one on the PLC). Thus, a direct conline change to the PLC will no longer work. On the other hand, the reference context now matches the created boot application, so you can login to any PLC on which you deploy the generated boot application. This updated compile context is also the one to be included into a project archive.&lt;/p&gt;
&lt;p&gt;As a temporary workaround, you could also login to the PLC before creating the boot application, this should also write out the files.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>create_boot_application() and 'Save As' message-box pop up</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/44f5345956/?limit=25#483f" rel="alternate"/><published>2020-02-27T14:51:23.642000Z</published><updated>2020-02-27T14:51:23.642000Z</updated><author><name>francois</name><uri>https://forge.codesys.com/u/francois/</uri></author><id>https://forge.codesys.com6be27849b8e6d67b37fc71a36dd0ebbad0daa1fa</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I see that CDS-30520 has been marked a duplicated of CDS-22407, which is now released under 3.5 SP2.&lt;br/&gt;
It is now possible to use the IScriptApplication.create_boot_applicaton(String filename) method instead of using the onlineapp object.&lt;/p&gt;
&lt;p&gt;This is great, except that the visu files containing the images, text lists and webvisu files are not generated.&lt;br/&gt;
The compilation context is also not saved&lt;br/&gt;
Is there a simlar way to get those by specifying the path?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>create_boot_application() and 'Save As' message-box pop up</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/44f5345956/?limit=25#9399" rel="alternate"/><published>2020-02-27T14:51:23.092000Z</published><updated>2020-02-27T14:51:23.092000Z</updated><author><name>chab</name><uri>https://forge.codesys.com/u/chab/</uri></author><id>https://forge.codesys.com7d7dd7e2afc7ecb29b3b5ba49becf310491f8b70</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you Markus.&lt;br/&gt;
As a work-around, I split my build process:&lt;br/&gt;
First create all 'project'-files (without any user intervention) (considerable amount of time).&lt;br/&gt;
Next create all 'boot application'-files (with user intervention) (several minutes).Regards,&lt;br/&gt;
Edwin.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>create_boot_application() and 'Save As' message-box pop up</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/44f5345956/?limit=25#ca71" rel="alternate"/><published>2020-02-27T14:51:22.541000Z</published><updated>2020-02-27T14:51:22.541000Z</updated><author><name>francois</name><uri>https://forge.codesys.com/u/francois/</uri></author><id>https://forge.codesys.com8e78bb0d10568f16072ee659c2ca947587732b47</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have been asking myself the same question. Would definitely speed up the build automation process!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>create_boot_application() and 'Save As' message-box pop up</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/44f5345956/?limit=25#a931" rel="alternate"/><published>2020-02-27T14:51:20.935000Z</published><updated>2020-02-27T14:51:20.935000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comb431950a7d67c10bab303217d7f7ebb4be211639</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;
When creating a boot application (offline), a 'Save As' message-box pops up. And a filename is requested.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;app&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;proj&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;active_application&lt;/span&gt;
&lt;span class="n"&gt;onlineapp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;online&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;create_online_application&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;onlineapp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;create_boot_application&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Can I define the filename in my script and NOT get the 'Save As' message box?&lt;br/&gt;
(This message box interrupts my automatic build. And human intervention is needed, which is not desired.)&lt;/p&gt;
&lt;p&gt;I'm afraid, currently this is not possible. The current code in the online manager directly opens a file dialog, it is not possible to catch it using prompt_answers. Currently, there is no easy workaround except external tools like AutoIt.&lt;/p&gt;
&lt;p&gt;I did create &lt;a class="" href="http://jira.3s-software.com/browse/CDS-30520" rel="nofollow"&gt;CDS-30520&lt;/a&gt; for this issue. You may ask your support contact to add your company or OEM as an interested customer to this issue.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>create_boot_application() and 'Save As' message-box pop up</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/44f5345956/?limit=25#6027" rel="alternate"/><published>2020-02-27T14:51:20.348000Z</published><updated>2020-02-27T14:51:20.348000Z</updated><author><name>chab</name><uri>https://forge.codesys.com/u/chab/</uri></author><id>https://forge.codesys.com334f2bf2001f7e328938e574388638e5ed451fb2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;When creating a boot application (offline), a 'Save As' message-box pops up. And a filename is requested.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;app&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;proj&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;active_application&lt;/span&gt;
&lt;span class="n"&gt;onlineapp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;online&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;create_online_application&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;onlineapp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;create_boot_application&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Can I define the filename in my script and NOT get the 'Save As' message box?&lt;br/&gt;
(This message box interrupts my automatic build. And human intervention is needed, which is not desired.)&lt;/p&gt;
&lt;p&gt;I found: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;system&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;prompt_answers&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="ss"&gt;"my message key"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;PromptChoiceFilter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;MyFilter&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;system&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;prompt_answers&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="ss"&gt;"my message key"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;MultipleChoiceSelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;MyFilter&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;But I do not know if those will do the job.&lt;/p&gt;
&lt;p&gt;Did anyone use create_boot_application() and found a work-around for the message box?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
Edwin.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>