PML Directives
- Last UpdatedOct 29, 2024
- 2 minute read
PML directives are commands used to control PML itself.
For example, you use a PML directive to instruct PML to remake its index when you have added a new file. Some of these directives have been described in Storing and Loading PML Files: the information is repeated here, with additional directives for loading forms.
Note:
Unlike the PML commands described in How Forms are Loaded and Displayed, PML directives should not be included in callbacks, but are generally for command
line use.
You will need to use PML directives when you are developing new form definitions or modifying existing ones. PML directives are commands of the form pml . . ..
The table below gives some useful PML directives.
|
Command |
Effect |
|
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, they can access the new files by giving this command. |
|
|
pml reload form |
When you edit an existing form while an AVEVA product is running, you must use this directive to reload the form definition file. |
|
kill !!formname |
If you experience problems of an edited form definition not being re-loaded, you can use this directive followed by the pml reload directive. |
|
pmlscan |
This command runs a utility supplied with AVEVA products. When you are not running an AVEVA product, you can use this command to update the pml.index file in a given directory. For further information, refer to the Installation Guides. |
For tracing commands that will be useful when you start to develop PML code, refer to Developing PML Code.