PLCControler.py
changeset 566 6014ef82a98a
parent 560 3757f0de0d07
child 567 eb523c4fa2da
--- a/PLCControler.py	Fri Sep 30 17:16:02 2011 +0200
+++ b/PLCControler.py	Sun Oct 09 19:51:14 2011 +0200
@@ -311,7 +311,14 @@
                 self.Project.setcontentHeader(properties)
             if name is not None or properties is not None:
                 self.BufferProject()
-            
+    
+    # Return project name
+    def GetProjectName(self, debug=False):
+        project = self.GetProject(debug)
+        if project is not None:
+            return project.getname()
+        return None
+    
     # Return project properties
     def GetProjectProperties(self, debug = False):
         project = self.GetProject(debug)
@@ -2695,6 +2702,13 @@
             return True
 
 #-------------------------------------------------------------------------------
+#                       Search in Current Project Functions
+#-------------------------------------------------------------------------------
+
+    def SearchInProject(self, criteria):
+        return self.Project.Search(criteria)
+
+#-------------------------------------------------------------------------------
 #                      Current Buffering Management Functions
 #-------------------------------------------------------------------------------