Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Unified Engineering

Display Text from a File on the Drawing

  • Last UpdatedApr 27, 2023
  • 1 minute read

The contents of a text file can be read in and placed on a drawing using Programmable Macro Language (PML) file handling facilities. For example (when at a NOTE):

ALIG TB JUST L

OPENFILE /filename READ !TOKEN

READFILE $!TOKEN !RECORD

NEW TEXP AT @ BTEX ’$!RECORD’

VAR !EXTENT EXTENT BTEX

The EXTENT query (together with PML array and string-handling commands) can be used to calculate the position of the next line of text.

Successive READFILE and TEXP commands can be used until the file is exhausted. The file can then be closed using:

CLOSEFILE $!TOKEN

Note that any ‘$’ characters in the file must be doubled.

PML is detailed. Refer to Using PML in AVEVA Products for further information

Related Links
TitleResults for “How to create a CRG?”Also Available in