Post Text for Miscellaneous Values

When Mastercam stores post text for miscellaneous integer or real variables, it lets you append a default value to the text string. However, you set these in two different places in the Control Definition Manager:

  • Use the Text page to enter the labels for each field.
  • Use the Misc. Int/Real Values page to enter the default values for each field.

Create the field label first on the Text page. When you save the control definition, the updated field will be visible in the Misc. Int/Real Values page so you can enter a default value, if desired.

The default values are coded as shown here. For a miscellaneous integer, only a single value is stored, in a <value> tag. Miscellaneous reals have separate tags for inch and metric default values.

Sample code from a post showing how default miscellaneous values are encoded.

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.

Learn more