Skip to content

TracePro Macros - Getting Started

Question

I would like to make use of the macro language in TracePro, how do I get started?

Synopsis

TracePro Macros - Getting Started

Solution

Here is a summary of the documentation and examples available for getting started using macros in TracePro:

DOCUMENTATION:

ONLINE HELP (from Help Menu in TracePro):

  • Help Topics >> search on "macro"
  • Macro Reference

EXAMPLE TracePro Scheme programs
Browse to the Support|TracePro section of this website and select TracePro Examples > Macros.

SCHEME LANGUAGE:

https://www.scheme.com/tspl4/
http://www.schemers.org
http://www.swiss.ai.mit.edu/projects/scheme/index.html

SUGGESTED EXERCISE FOR GETTING STARTED:

  1. Browse to the Support|TracePro section of this web site and select TracePro Examples > Macros, and save two macro files to your PC - CopyArray.scm - RepetitiveRaytrace.scm
  2. Open Notepad++ or in TracePro, select Macros|Open Notepad++ and open CopyArray.scm to view the macro file. All lines that begin with a semicolon are comments, so these lines are not commands that are executed.
  3. This example macro is well documented, please follow the Steps 1-6 that are detailed in the comments of the macro.
  4. Repeat for RepetitiveRaytrace.scm