Macros このトピックを印刷 前のページ 1つ上のレベル 次のページ

ホーム >  プログラマーの レファレンス > Scripting Editor >


Macros automate repetitive or complex tasks. In the Scripting Environment, you can create a script that calls application functions as well as custom functions that you have defined. This flexibility provides you with a powerful method of automating tasks within StyleVision. This section about macros is organized as follows:


Creating and Editing a Macro describes how to create a new macro and edit an existing one.
Running a Macro explains how a macro can be run in StyleVision.
Debugging describes how macros can be debugged.



Key points about macros

Given below is a summary of important points about macros.


Any number of macros can be added to the active scripting project. These macros are saved in the Altova Scripting Project file (.asprj file).
Functions that are used in a macro can be saved as a Global Declaration. All Global Declarations are also saved in the Altova scripting project file (.asprj file).
The macro can be tested by running it from within the Scripting Editor, and it can be debugged from within the Scripting Editor.
StyleVision can have one global Scripting Project, and a second scripting project, assigned to the currently loaded project, active at any one time; the macros are available to both of them. See Running a Macro for details.


(C) 2019 Altova GmbH