To create a macro that you can run in Security Center, you must write a C# program using an external
text editor or the text editor in Config Tool, and
then load the program in Security Center.
What you should know
You can save a draft of a macro that is incomplete or has errors so you can return
later to work on the unfinished macro.
Procedure
-
From the Config Tool homepage, open the System task and click
the Macros view.
-
Click
Macro, and enter the macro name.
-
Click the Properties tab, and do one of the following:
- To import the source code from a file, click Import from
file, select the file containing the C# code, and click
Open.
- Write your own code in the text field.
-
(Optional) Turn on the Draft option to save a draft version
of the macro to work on later.
Macros in draft state cannot be run.
-
Click Apply.
NOTE: If your macro is incomplete or has errors and
you did not turn on the Draft option, a macro errors window
opens. Click Save draft to turn on the draft option
here.
-
(Optional) If the program has input parameters, click the Default
execution context tab and configure the settings.
-
Click Apply.