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

Hull and Outfitting

Displaying Text from a File on the Drawing

  • Last UpdatedDec 19, 2025
  • 1 minute read

The contents of a text file may 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) may be used to calculate the position of the next line of text.

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

CLOSEFILE $!TOKEN

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

PML is detailed in the Software customization Guide.

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