ctx::manager
Contains basic methods to manage contexts.
Syntax
ctx::manager method ?value1 value2 … valueN?
Type
ContextDescription
Contains basic methods to manage contexts. For example, entering a specified context, exiting the active context, and registering itcl class with a scripted context.
Methods
- enter context_name
- Enters the specified context.
- exit
- Exits the active context.
- register client context_name class_name
- Registers the itcl class with the scripted context for the specified client. Valid client values are:
Examples
ctx::manager enter 2DMeshRebuild
ctx::manager exit
ctx::manager register hm CopyTranslateCtx "::demo::CopyTranslateCtx"
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
2022.1