<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Listing POUs in Project with Scripts</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/f904edd07c/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/f904edd07c/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/f904edd07c/</id><updated>2022-10-10T10:50:25.748000Z</updated><subtitle>Recent posts to Listing POUs in Project with Scripts</subtitle><entry><title>Listing POUs in Project with Scripts</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/f904edd07c/?limit=25#bbc5" rel="alternate"/><published>2022-10-10T10:50:25.748000Z</published><updated>2022-10-10T10:50:25.748000Z</updated><author><name>paulpotat</name><uri>https://forge.codesys.com/u/paulpotat/</uri></author><id>https://forge.codesys.com2b3918722e692553ea30f9e829287f6d5ea3a771</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;br/&gt;
You can check the &lt;code&gt;export.py&lt;/code&gt; file of this &lt;a class="" href="https://github.com/18thCentury/CodeSys" rel="nofollow"&gt;github repo&lt;/a&gt;, it generates text files for every POU in a project (and more).&lt;br/&gt;
To do so, it iterates over every object in a project recursively, starting with the tree returned by &lt;code&gt;projects.primary.get_children()&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;I hope this can help you,&lt;br/&gt;
BR&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Listing POUs in Project with Scripts</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/f904edd07c/?limit=25#6ec4" rel="alternate"/><published>2022-10-07T17:54:50.617000Z</published><updated>2022-10-07T17:54:50.617000Z</updated><author><name>magicman</name><uri>https://forge.codesys.com/u/magicman/</uri></author><id>https://forge.codesys.com61b12bc6d2b298f78203c5139cd955d95e10f041</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Trying to use scripts to scan the POUs in a folder in the object tree in order to use the names of the POUs in another location, just as a way to automate some programming tasks. Problem I'm running into is I can't find the right attribute to call to flag an object in the tree as a POU. I've tried the closest thing I could find which is .is_fb but it returns with an error saying it's not an attribute of ScriptObject. Any help pointing me in the right direction would be greatly appreciated.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>