About macros - Security Center 5.12

Security Center Administrator Guide 5.12

Product
Security Center
Content type
Guides > Administrator guides
Version
5.12
Language
English
Last updated
2024-09-13

A macro is an entity that encapsulates a C# program that adds custom functionalities to Security Center.

Macros can be executed either manually or automatically. When automated, it is loaded as a background process and executes when a set of conditions are met.

You create macros by writing a program in C# using Security Center SDK, and then loading the program into Security Center. If you need help developing custom macros, contact Genetec™ Professional Services through your sales representative for a quote, or call us at one of our regional offices around the world. To contact us, visit our website at www.genetec.com.

Macro execution context

You can provide input parameters to your macro by declaring mutators. Such mutators must be public. Their type must be one of the following:
  • System.Boolean
  • System.String
  • System.Int32
  • System.Guid

By declaring mutators, your macro will have an execution context that can be configured in the Default execution context tab. If a macro is run without specifying an execution context, the default execution context is used. This is always the case when a macro is launched from the toolbar at the bottom of Config Tool.

The default execution context can be overridden by specifying your own context.