Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
TracePro_User_Manual_5.0.pdf
Источник:
Скачиваний:
281
Добавлен:
03.05.2015
Размер:
6.09 Mб
Скачать

The Scheme Language

FIGURE 10 - Scheme Editor Window

Macro Recorder Standard Expert

The Macro Recorder captures the TracePro commands used during a session and stores the equivalent Scheme commands to a file. The stored file can be run by TracePro using the Macro|Execute command to recreate the system and/or results stored between the Macro|Recorder|Start and Macro|Recorder|Stop

TracePro 5.0 User’s Manual

8.5

Using the Macro Language

commands. The file can also be edited and modified to return new results or become a function containing input parameters.

Recording States

During a Macro Recording the Start menu is altered to allow interruption in the recording process. The following options are displayed:

Start

No macro file is open. Press Start to create a new macro.

Pause

A macro file is open and commands are being stored to file.

 

Press Pause to keep the current Macro file but temporarily halt

 

recording.

Resume

A macro file is open but currently not receiving commands.

 

Press Resume to resume recording.

Stop

A macro file is open and may be receiving commands as

 

stated above. Press Stop to halt recording of the current

 

macro and close the file.

Macro Format and Example

Selecting the Macro|Recorder|Start menu opens the Macro Recorder dialog. The Macro Name is the function to be defined and stored in the file given by File Path. Select Record view change to capture the Model and Window commands if you are changing between different Models or Views.

Figure 1 Macro Recorder

The following output was generated from a new Model Window. The GUI commands were used to create a sphere, apply the Schott BK7 material property, and trace the default ray grid.

(define Macro1 (lambda ( )

(solid:sphere 0 0.071748077869415 12.079558372498 11.625308990479)

(edit:set-select-body #f)

8.6

TracePro 5.0 User’s Manual

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]