Working with Post Text

“Post text” refers to the collection of strings or labels that Mastercam uses to customize its interface for specific post processors. These include:

  • Names and default values for miscellaneous integers and reals.
  • Names of drill cycles.
  • Names of the individual parameters and settings for each drill cycle.
  • Names of custom parameters and settings for each drill cycles.
  • Custom integer and real settings for each lathe part-handling operation.
  • Custom integer and real settings for each transform operation.
  • Names of canned text options.
  • Fields and button labels for the Tool parameters page/dialog box.
  • Bitmaps used to illustrate individual drill cycles.

Post text entries are organized in sheets under the Text topic in the Control Definition Manager:

"Post text" sheets under the "Text" topic.

Each sheet is organized into different categories, and then individual “cells” within each category:

A sheet with its spreadsheet-like cells displayed.

Post text is encoded in the .pst file as XML data. Each post can have multiple sections of post text. This lets one post support multiple control definitions. Each section is identified by a tag which specifies the type of post and the name of the control definition:

The XML data of the post text.

It is important to understand that even though you use the Control Definition Manager to work with post text, Mastercam stores post text in the .pst file, not in the .mcam-control file with the rest of the control definition.

NOTE

The best practice is to always use the Control Definition Manager to work with and edit post text. Do not use Code Expert or another editor to edit the entries directly in the .pst file. Using the Control Definition Manager ensures that your post text headers are properly created and that the integrity of your post text structure is maintained.

Understanding the format of post text strings

Each cell in a post text sheet can have one of three types of strings. The picture shows you how these appear when you are working in the Text page.

 

Any text string

 

The three different types of post text strings.

Empty cell

 

 

Pair of double quotes "" with no spaces between them

 

The type of string controls how Mastercam displays the field that is associated with the post text entry.

Type of string What Mastercam does
Any text string

If the post text entry contains any text string—even just a single space—the associated data entry field in Mastercam is enabled. In addition:

  • Mastercam uses the string as the field label. This replaces the system default text label.
  • The string is written to the post text section of your post.
Empty cell

If the post text entry is blank, the associated data entry field in Mastercam is enabled. However:

  • Mastercam uses system default text—for example, Misc. Integer [5]—as the field label.
  • Nothing is written to the post text section of your post.

Pair of double quotes ""

If the post text entry is a pair of double-quotes, the data entry field in Mastercam is disabled.

  • "" is written to the post text section of your post.

Text for miscellaneous integer and real variables is more complicated because that text can also encapsulate default values. See Post Text for Miscellaneous Values.

Learn more