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

The Scheme Language

Scheme Editor Standard Expert

Overview

A Scheme Editor is available for creating and editing Scheme Macro files that can be used in TracePro, and is available from the Macros Menu.

Text Color

The Scheme Editor is a text editor with color-coding to differentiate text as shown in Figure 10:

Blue (bold)

Core Scheme Commands (e.g. – define, list)

Violet

ACIS and TracePro Scheme Commands (e.g -

 

do, raytrace, solid)

Black

Remainder of ACIS and TracePro Scheme

 

Commands (e.g. - “save-as” when it follows “file:”)

Light Blue

ACIS and TracePro Keywords (e.g. - position,

 

entity, gvector)

Red

Values

Brown

Text

Green

Comments

File Menu – options unique to the Scheme Editor

Reload – If the scheme file has changed since it was opened, selecting reload will initiate a prompt to save the scheme file in its current state. Selecting No will Reload the file as it was last saved. If the scheme file has not changed since it was opened, selecting Reload does nothing.

TracePro – Selection of this menu item (or the F5 key) executes a portion or all of the macro in TracePro. If specific text is highlighted in the Scheme Editor, only that text will be executed. If no text is highlighted, then the entire macro will be executed.

Edit Menu – options unique to the Scheme Editor

Replace – To replace text in the file, select Edit|Replace, input the text to be found and the replacement text, then click Find Next, Replace, or Replace All. To replace text in only a section of the document, first highlight the section, then open the Replace dialog, set the “Replace In” option to “selection”. The optional checkboxes for “Match whole word only”, Match case, and Regular Expression can be checked to more selectively locate the text to be replaced.

TracePro 5.0 User’s Manual

8.3

Using the Macro Language

FIGURE 9 - Replace Dialog (available from the Edit Menu)

Go to line – To move the cursor to a specific line number in the file, select Edit|Go to line, enter the line number, then click OK.

Match Bracket – With the cursor adjacent to a bracket in the macro, select Edit|Match Bracket to move the cursor to the matching bracket. If the cursor is placed before a bracket, the Match Bracket function will place the cursor immediately before the matching bracket. If the cursor is placed after a bracket, the Match Bracket function will place the cursor immediately after the matching bracket.

Auto Format - This command will scan the document and update the file formatting. Opening and Closing parentheses will be matched and indented.

Read Only – To make the document unavailable for editing, select Edit|Read Only to set the checkmark next to the menu item. To return to read/write mode, select the menu item again to remove the check.

8.4

TracePro 5.0 User’s Manual

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