Trigger Clause for the Add Attribute Command

Event Triggers provide a way to customize 3DSpace behavior through Program Objects. Triggers can contain up to three Programs, (a check, an override, and an action program) which can all work together, or each work alone. Attributes support the use of triggers on the modify event.

For more information, see Trigger Event Macros. The syntax for the trigger clause is:

trigger modify {action|check|override} PROG_NAME [input ARG_STRING];

For example, to assign a check trigger called OnApprove, you would use:

trigger modify check OnApprove;

In this example, the name of the program to execute is OnApprove.

You can define arguments to be passed into the program. For example:

trigger modify check OnApprove input ChngChk;

In this example, the argument passed into the OnApprove program is ChngChk.

When you pass arguments into the program they are referenced by variables within the program. Variables 0, 1, 2… and so on. are reserved by the system for passing in arguments.

Environment variable “0” always holds the program name and is set automatically by the system.

Arguments following the program name are set in environment variables “1”, “2”,… and so on.