Page 527 - Chief Architect Reference Manual
P. 527

Text Macro Management Dialog



                               •  Information about a selected macro dis-  4  The Expanded Macro Value field
                                  plays in the Macro Value and Expanded    displays the information that the macro
                                  Macro Value fields to the right of the   reports. If the selected macro is not Valid in
                                  list.The Macro Value field shows the   the current context,  “#Evaluation Error#”
                                  defined Value of the selected macro. The   will display here,
                                  Expanded Macro Value shows the output    If the selected macro is not Valid, click
                                  of the macro in the current context.   5
                                                                           the Show Evaluation Error button to
                                2   Edit or delete the selected text macro,   open an Information box with a description
                                    create a new one, or import or export   of the problem.
                               macros to and from other files. See
                               “Importing and Exporting Macros” on page     Edit Text Macro Dialog
                               528, below.
                                                                       The Edit Text Macro dialog can be accessed
                               •  C  l  i  c  k     t  h  e     Edit button to make changes to   by clicking the Edit, New, or Copy button in
                                  the selected macro in the Edit Text Macro   the Text Macro Management dialog.
                                  dialog. Only available when an existing
                                  macro is selected.
                               •  Click the New button to open the Edit
                                  Text Macro dialog and create a new
                                  macro.
                               •  Click the Copy button to create a copy of
                                  the currently selected macro and open the
                                  Edit Text Macro dialog. Only available
                                  when an existing macro is selected.
                               •  Click the Delete button to remove the
                                  selected macro from the list. Only avail-  1  Type a short, descriptive Name for the
                                  able when an existing macro is selected.  macro. Macro names must be unique
                               •  Click the Import button to open the   within a given file, or library object.
                                  Import Text Macros dialog and import     Type a named value, reference to a
                                  macros exported from another file into   2  Ruby .rb file, and/or insert an existing
                                  the current file. See “Importing Files” on   macro in the Value field.
                                  page 64.
                                                                       •  You can also copy a Named Value out of
                               •  Click the Export button to open the     the Ruby Console or a definition from an
                                  Export Text Macros dialog and make the   .rb file and paste it here. See “To Copy,
                                  user-defined macros in this file available   Cut and Paste text” on page 508.
                                  to be imported into another file. See
                                  “Exporting Files” on page 60.        •  Click the Insert button above the Value
                                                                          field to insert an already existing macro
                                3   The Macro Value field displays the    into the selected macro. See “Text Mac-
                                    content, or text used to define the   ros” on page 522.
                               selected macro.



                                                                                                       527
   522   523   524   525   526   527   528   529   530   531   532