plcopen/plcopen.py
changeset 491 d22a4a95fd5e
parent 488 93bf600bae11
child 539 8dbb1de154c1
--- a/plcopen/plcopen.py	Tue Dec 15 11:31:23 2009 +0100
+++ b/plcopen/plcopen.py	Tue Dec 15 16:30:39 2009 +0100
@@ -649,12 +649,10 @@
     setattr(cls, "GetCustomBlockResource", GetCustomBlockResource)
 
     # Return Data Types checking for recursion
-    def GetCustomDataTypes(self, exclude = "", complextypes = True):
+    def GetCustomDataTypes(self, exclude = ""):
         customdatatypes = []
         for customdatatype in self.getdataTypes():
             customdatatype_name = customdatatype.getname()
-            if not complextypes and customdatatype.baseType.getcontent()["name"] in ["array"]:#, "struct"]:
-                continue
             if customdatatype_name != exclude and not self.ElementIsUsedBy(exclude, customdatatype_name):
                 customdatatypes.append(customdatatype_name)
         return customdatatypes