plcopen/plcopen.py
changeset 488 93bf600bae11
parent 484 acef952101a5
child 491 d22a4a95fd5e
equal deleted inserted replaced
487:580b04db8c65 488:93bf600bae11
   651     # Return Data Types checking for recursion
   651     # Return Data Types checking for recursion
   652     def GetCustomDataTypes(self, exclude = "", complextypes = True):
   652     def GetCustomDataTypes(self, exclude = "", complextypes = True):
   653         customdatatypes = []
   653         customdatatypes = []
   654         for customdatatype in self.getdataTypes():
   654         for customdatatype in self.getdataTypes():
   655             customdatatype_name = customdatatype.getname()
   655             customdatatype_name = customdatatype.getname()
   656             if not complextypes and customdatatype.baseType.getcontent()["name"] in ["array", "struct"]:
   656             if not complextypes and customdatatype.baseType.getcontent()["name"] in ["array"]:#, "struct"]:
   657                 continue
   657                 continue
   658             if customdatatype_name != exclude and not self.ElementIsUsedBy(exclude, customdatatype_name):
   658             if customdatatype_name != exclude and not self.ElementIsUsedBy(exclude, customdatatype_name):
   659                 customdatatypes.append(customdatatype_name)
   659                 customdatatypes.append(customdatatype_name)
   660         return customdatatypes
   660         return customdatatypes
   661     setattr(cls, "GetCustomDataTypes", GetCustomDataTypes)
   661     setattr(cls, "GetCustomDataTypes", GetCustomDataTypes)