Macro editor

<< Click to Display Table of Contents >>

Navigation:  Macros >

Macro editor

A macro editor is provided for writing macros. Since macros are not linked to network files, the macro editor is located at Tools | Macros. The editor reads and writes macros from/to separate files, each with the extension ‘vmf’ (Vision Macro File). Vmf files are text files.

 

The macro editor uses styles to indicate commands, parameters, variables and comments. Also the user is assisted with "code inside" and "code completion" functions. These enhancements reduce the chances of typing errors and erroneous usage of attributes.

 

The editor uses the following styles:

 

Commands

bold

Objects and variables

normal

Numbers

blue

Texts

'red'

Comments

//green

 

A number of macro command lines will be interpreted as comments if it has been enclosed mit (* and *). The comment block starts by positioning (* at the command line begin. The comment block ends by positioning *) at the command line end.

 

The "code inside" function supports the user with help on the remainder of the parameters of commands. The "code inside" is activated automatically when the command and its left parenthesis are typed.

 

code inside

 

Figure: Code Inside

 

The "code completion" function supports the user with a typing help for the objects attributes. The "code completion" is activated automatically when the object and its dot are typed.

 

code completion

 

Figure: Code Completion

 

The macro editor reads and writes the macros using text files with the extension vmf.

 

See also:

Making calculations with macros

Macro structure and syntax

Macro commands and parameters