Fundamentals: Feedback

Macros often need to present information to the user or prompt them for values. This is very true when debugging macros, but also true in just their regular use. For this purpose, SmartCAM's macro system provides two commands. One displays information to the user, the other prompts the user for information.

To create a message box in a macro, add a PAUSE or PROMPT command to the .mcl file.

Using the PAUSE Command

Use the PAUSE command to display a message box that:

The PAUSE command uses the following syntax:

PAUSE[TX="body of text",LR=##,LC=##,SR=##,SC=##,PT=0]

Where:

Using the PROMPT Command

Use the PROMPT command to create a message box that requests input for a user variable. You can have SmartCAM display the name of the variable (the current value is always shown). This enables you to provide a description of the user variable and how it relates to the model.

The PROMPT command uses the following format:

PROMPT[TX="body of text",VN="varname",LR=##,LC=##, SR=##,SC=##,DV=#]

Where:

Related Topics

Expressions

Macro Development Fundamentals Overview

SmartCAM Automation Overview