Run Custom PML Macros from users' workspaces
- Last UpdatedDec 13, 2024
- 2 minute read
Users do not have admin access on their WorkSpaces and therefore do not have write permissions to protected folders. The standard PML macros shipped with E3D are placed in the following protected folder:
C:\Program Files (x86)\AVEVA\Everything3D2.10\PMLLIB (for 2 series)
C:\Program Files (x86)\AVEVA\Everything3D3.10\PMLLIB(for 3 series)
Therefore, it is not possible to add custom macros to this folder or to rebuild the PML index for this folder.
To make custom PML Macros available to E3D sessions (GUI or TTY) for all projects:
-
Place the PML macros in the P:\ProjectFiles\Design\PMLLIB\ folder. For the first-time, the PMLLIB folder will need to be created.
-
Add an entry to P:\AVEVAFiles\Engineering\custom_evars.bat
set PMLLIB=P:\ProjectFiles\Design\PMLLIB\;%PMLLIB%
To make custom PML Macros available to E3D sessions (GUI or TTY) for a specific <PROJECT> only, customers should:
-
Place the PML macros in the P:\ProjectFiles\Design\<>PROJECT>\PMLLIB\ folder
For the first-time, the PMLLIB folder will need to be created.
-
Add an entry to P:\AVEVAFiles\Engineering\custom_evars.bat
set PMLLIB=P:\ProjectFiles\Design\<PROJECT\>PMLLIB\;%PMLLIB%
Performance can be affected if a PML file stored on P:\ is accessed by the application a significant number of times.
Performance can be improved by using the PML STATISTICS command in the application and a buffering directive in the PML file:
-
The PML STATISTIC command identifies those PML files performing a significant number of reads.
-
The PML buffering directive forces retention of the file in memory indefinitely once it has been read a specified number of times.
For each high-read-rate PML file, insert a buffering directive (a dash and a number directly after the three-digit encryption algorithm ID) in the PML file header line (the first line in the file).
Example:
--<000-1>-- Published PML 1.1 >--
Where the "000" is the three-digit encryption algorithm ID and the "-1" implies to read the file once and thereafter retain in memory for further reads.
Full details can be found in the "Buffering" section of the "PML Publisher User Guide" (https://softwaresupportsp.aveva.com/#/producthub?q=pmlencrypt&selectedTab=Documents)