Message Function

Displays a message in an information box. The message can include one or more parameter values.

Syntax

Message(String [# String1  # String2 ..., Param1Name, Param2Name, ...] ) : Void

The Message function takes one required argument and several optional arguments depending on whether parameter values are to be displayed in the message.

Arguments Description
String Required. String to be displayed in the information box (should be put in quotes).
# String1, Param1Name... Optional. When parameter values are to be displayed within the message, the arguments should be specified as follows:
one string in quotes including a  #  symbol wherever a parameter value is to be displayed
as many [, parameter name] statements as parameter values declared with a "#" in the message.

Use the "|" symbol to insert a carriage return in a message.

Example

Message("External radius is: # | Internal Radius is: #", 
PartBody\Sketch.1\Radius.3\Radius,
PartBody\Hole.1\Diameter)  

 

Back Up Next