Read pml.index from updated PMLLIB source without rehash

 
  • Hi,

    I'm trying to add a new source for PML-files and then use the files without using rehasing during runtime.

    For now I have added the new source into the PMLLIB evar, I can see that its updated and it shows up correct when I check with "q evar pmllib".

    In the new folder I've also generated a pml.index file that has the file indexed.

    I hoped that I only needed to run "pml index" and it would read the pml.index files, also the new ones. But It works only after I rehash all.

    Anything that I do wrong or do I need to use rehash?
  • Hi Arntksorli...Here are some definitions from the PDMS help pages.

    PML REHASH

    When you create a new PML Form while an AVEVA product is running, you must link in the file storing the form by giving this command.
    It causes PML to scan all the directories under the PMLLIB path, and to create a file pml.index, which contains a list of all the .pmlfrm files in the directories.
     
    &

    PML INDEX

    This command re-reads all the pml.index files in your search path without rebuilding them.
    If other users have added PML Files and updated the appropriate pml.index files, you can access the new files by giving this command.

    You need to run both.
  • Thanks for the reply.

    What does the rehash do other than creates the pml.index file? Since I already have injected the pml.index file on the root of the added source and updated pmllib search path. I thought the "pml index" command should be sufficient.

    Maybe I can tell also why I don't want to use the rehash command; There have been reported issues before, when the db is located on shared drives, that the rehash overwrites the pml.index file for all users sharing the same db. I did not think that was the case, but I'm instructed to avoid the use of the rehash command.

    If someone can confirm that this is not the case I'd appreciate that and with an explanation :)
  • if you pmllib on server and you only have read access and you do : pml rehash all
    you can not refresh the pml.index file.

    so you can put you tools on local drive c: or d: , run local sample project and do pml rehash all on local drive .