push

Use the push command to save the current ADEdit context—its bindings and selected objects in memory—to a context stack. This command leaves the current context in place, so all current bindings and selected objects remain in effect in ADEdit after the push.

This command is useful for Tcl scripts that use subroutines. You can use the push command to save the context before it’s altered in the subroutine. You can then use the pop command to retrieve the saved context when the subroutine returns.

Zone type

Not applicable

Syntax

push

Abbreviation

None.

Options

This command takes no options.

Arguments

This command takes no arguments.

Return value

This command returns nothing.

Examples

push

The example saves the current ADEdit context.

Related commands

The following commands perform actions related to this command:

  • show returns the current context of ADEdit, including its bound domains and currently selected objects.
  • pop restores the context from the top of the ADEdit context stack to ADEdit.