DRAW Reference Manual
2D Drafting
:
Text Strings
: Display Text from a File on the Drawing
Display Text from a File on the Drawing
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
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.