8 Replies Latest reply on Dec 6, 2011 2:59 PM by spilon

    Update PiProperty in ACE modules in Vb.net

    formerpigeek

      How to update PIProperty in ACE Module? I have tried the following but it is not working

       
      Dim pimdb as PiModoule
      pimdb=GetPIModulePath(Context)
      pimdb.PIProperties.Item("TestEditProperty").Value= 1000
      

       

       

       The above value is not being updated in ModuleDatabase.

        • Re: Update PiProperty in ACE modules in Vb.net
          andreas

          Amit,

           

          that should work fine. The only reasons I could imagine are that you have a typo in "TestEditProperty" or that you don't have write access to your MDB/Module.

           

          Here is my sample code:

           
                  Dim pimdb As PISDK.PIModule
                  pimdb = PIACEBIFunctions.GetPIModuleFromPath(Context)
                  pimdb.PIProperties.Item("MyFloat").Value = Input.Value