<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How to get DefaultViewMode of POUs?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4d223ccb61/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4d223ccb61/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/4d223ccb61/</id><updated>2020-02-27T15:02:58.389000Z</updated><subtitle>Recent posts to How to get DefaultViewMode of POUs?</subtitle><entry><title>How to get DefaultViewMode of POUs?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4d223ccb61/?limit=25#0248" rel="alternate"/><published>2020-02-27T15:02:58.389000Z</published><updated>2020-02-27T15:02:58.389000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comdb35ad6e27d5919c9900990e10849b1e901349f7</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;Right now, there's no scripting access to the default view mode setting for the NWL POUs.&lt;/p&gt;
&lt;p&gt;The information is partially covered by the embedded_object_types property of the script object, where you can get the type GUID of the implementation part - this allows you to differenciate between ST, SFC, CFC, &lt;a class="" href="http://store.codesys.com/codesys-uml.html" rel="nofollow"&gt;UML state diagram&lt;/a&gt; and NWL. However, it does not allow you to distinguish between the three different languages supported by the NWL object (FBD/IL/LD).&lt;/p&gt;
&lt;p&gt;As a workaround, you could use export_xml and then parse the PLCOpenXML string to check whether the object is FBD, IL or LD.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to get DefaultViewMode of POUs?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4d223ccb61/?limit=25#230d" rel="alternate"/><published>2020-02-27T15:02:57.770000Z</published><updated>2020-02-27T15:02:57.770000Z</updated><author><name>mvs</name><uri>https://forge.codesys.com/u/mvs/</uri></author><id>https://forge.codesys.com4bee442a335fb940e1f715cf5db02e2985959338</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi there!&lt;/p&gt;
&lt;p&gt;I am working on a more comfortable export dialog and want to set the icons of the POUs according to their DefaultView setting (FBD/IL/LD)(please refer to the attached screenshot).&lt;/p&gt;
&lt;p&gt;In the Automation Platform help I found the DefaultViewMode property in the INWLImplementationObject interface.&lt;br/&gt;
Actually I don't know how to get access via Python to this property.&lt;/p&gt;
&lt;p&gt;Is this generally possible?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br/&gt;
Alex&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Treeview_ExportDialog.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1100"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>