<?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 Network Variable by Script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/0b8e1440cc/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/0b8e1440cc/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/0b8e1440cc/</id><updated>2020-02-27T14:46:39.413000Z</updated><subtitle>Recent posts to How to create Network Variable by Script</subtitle><entry><title>How to create Network Variable by Script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/0b8e1440cc/?limit=25#6365" rel="alternate"/><published>2020-02-27T14:46:39.413000Z</published><updated>2020-02-27T14:46:39.413000Z</updated><author><name>hhz</name><uri>https://forge.codesys.com/u/hhz/</uri></author><id>https://forge.codesys.com92ba1959b0cbc1e547c2ad516e10e0a833f30962</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Ingo,&lt;/p&gt;
&lt;p&gt;thanks for replays!&lt;/p&gt;
&lt;p&gt;In fact I  do not want to use Import /Export function for creating new project. As my experience shown, Im-/export function does not works  anytime and anywhere. My purpose here is to automatically generate a new project, incl. IEC code, configuration, parameter setting etc.. The similar as manually generating project the better. &lt;/p&gt;
&lt;p&gt;In that case, a scripting API is requested.       &lt;/p&gt;
&lt;p&gt;BR.&lt;br/&gt;
hhz   &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Ingo Hornberger hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hi hhz,&lt;br/&gt;
I am not sure if there is a scripting API for this, but depending on your use case there might be an easier solution.&lt;br/&gt;
You can link every kind of a GVL (so also an NVL)  to an external file. This is imported before compile. If you just want to push variable declarations into the project, this method is very easy.&lt;br/&gt;
To do the link just right click on the NVL and open the properties.&lt;br/&gt;
BR,&lt;br/&gt;
Ingo&lt;br/&gt;
Gesendet von meinem LG-H870 mit Tapatalk&lt;/p&gt;
&lt;/blockquote&gt;&lt;/div&gt;</summary></entry><entry><title>How to create Network Variable by Script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/0b8e1440cc/?limit=25#da0d" rel="alternate"/><published>2020-02-27T14:46:38.730000Z</published><updated>2020-02-27T14:46:38.730000Z</updated><author><name>Ingo</name><uri>https://forge.codesys.com/u/ingo/</uri></author><id>https://forge.codesys.com8493f9217d47a853d704152d2bfc25f8569162d8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi hhz,&lt;/p&gt;
&lt;p&gt;I am not sure if there is a scripting API for this, but depending on your use case there might be an easier solution.&lt;/p&gt;
&lt;p&gt;You can link every kind of a GVL (so also an NVL)  to an external file. This is imported before compile. If you just want to push variable declarations into the project, this method is very easy.&lt;/p&gt;
&lt;p&gt;To do the link just right click on the NVL and open the properties.&lt;/p&gt;
&lt;p&gt;BR,&lt;br/&gt;
Ingo&lt;/p&gt;
&lt;p&gt;Gesendet von meinem LG-H870 mit Tapatalk&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to create Network Variable by Script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/0b8e1440cc/?limit=25#b8d4" rel="alternate"/><published>2020-02-27T14:46:37.052000Z</published><updated>2020-02-27T14:46:37.052000Z</updated><author><name>hhz</name><uri>https://forge.codesys.com/u/hhz/</uri></author><id>https://forge.codesys.com348d132d78287cc03a7aac04dceb4e65aed960c9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;i want to add some Netwerk Variable (Receiver and Sender) in my project by using script. There are some scripts (command or method) support this feature?  I can find nothing about this issue in Script online help of CDS v3  sp11.  &lt;/p&gt;
&lt;p&gt;Thanks for any replay!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>