Product Documentation
Cadence User Interface SKILL Reference
Product Version IC23.1, September 2023

envUnregSetTrigger

envRegSetTrigger(
t_tool
s_triggerFunc 
)
=> t / nil

Description

Deregisters the specified set trigger function for the specified tool. The specified function is deleted from the list of the set trigger functions for the tool.

Arguments

t_tool

The name of the tool for which you want to unregister a set trigger function.

s_triggerFunc

The function to be deleted from the list of set trigger functions.

Values Returned

t

The set trigger function was deregistered.

nil

The operation is not completed.

Examples

;; There are two different set trigger functions
( defun setTriggerVar1( toolName varName oldValue newValue )  ( ... ))
( defun setTriggerVar2( toolName varName oldValue newValue )   ( ... ))
;; they are registered to be called after the tool's environment variable is set
envRegSetTrigger( "tool" 'setTriggerVar1 )
envRegSetTrigger( "tool" 'setTriggerVar2 )
envSetVal( "tool" "boolVar" 'boolean t )
;; => Here both set trigger functions are called
;; Now the setTriggerVar2 function is unregistered as a set trigger function
;; and it is deleted from the list of set trigger functions
envUnregSetTrigger( "tool" 'setTriggerVar2 )
envSetVal( "tool" "boolVar" 'boolean nil )
;; => Here only the setTriggerVar1 function is called

Related Topics

Cdsenv Editor Functions


Return to top
 ⠀
X