Product Documentation
Cadence Application Infrastructure SKILL Reference
Product Version IC23.1, November 2023

ccpRegTrigger

ccpRegTrigger(
t_copyPhaseStr
s_triggerFunction
[ g_canEditList ]
)
=> t / nil

Description

Registers the copy trigger that you create. The copy trigger is called in the copy phase that you specify.

If you run copy commands through the Cadence Library Manager, you need to set the following in your .cdsenv file so that copy is done by cdsCopy instead of the Library Manager and the copy triggers that you specify are called:

ddserv.lib                     enableCopyInDFII      boolean      t
cdsLibManager.copyGlobals      mpsRadio              toggle       (t nil)

The cdsLibManager.copyGlobals setting is the default setting for the Remote Copy Service option in the Copy Preferences form.

Arguments

t_copyPhaseStr

One of the following strings, representing the phase of the copy operation in which you want the trigger function to be called:

  • "ccpPostExpandTrigger": Gets called after expanding a list of source objects.
  • "ccpPreTransferTrigger": Gets triggered before copying data or files.
  • "ccpPostTransferTrigger": Gets triggered after copying data or files.
  • "ccpPreUpdateTrigger": Gets triggered before the cross-reference update.
  • "ccpPostCopyTrigger": Gets triggered after all the stages of copy are complete.

s_triggerFunction

Your trigger function, specified as a symbol.

g_canEditList

Allows to edit the copy lists. When set to nil, the trigger cannot edit the copy lists.

The performance of the copy operation is better if you specify nil for this argument.

Value Returned

t

The copy trigger was added.

nil

The copy trigger could not be added.

Examples

ccpRegTrigger("ccpPostExpandTrigger" 'copyTriggerPrint t)

Additional Information

A copy trigger function is a function that specifies the action to be triggered in a specific phase of the copy operation.

The copy trigger function must return t for the copy operation to continue; if the function returns nil, the copy operation is canceled.

Use the following format for the copy trigger function:

procedure(copyTrigger(myFunction copyPhaseStr checkOffList supplementList
otherFromSpecs otherToSpecs updateList retHint ctxList reserved "stgggggggx"))
=> t / nil

where

The following example creates a copy trigger function that prints some of its arguments:

procedure(copyTriggerPrint(myFunction copyPhaseStr checkOffList supplementList 
                             otherFromSpecs otherToSpecs updateList retHint
                             ctxList reserved "stgggggggx")
    let((retOK)
        retOK = t
        printf("Copy phase is \"%s\"\n" copyPhaseStr)
        printf("Calling options were %L\n", ctxList)
        printf("Pre-copy set is %L\n", checkOffList)
        printf("Post-copy is from %L\n", otherFromSpecs)
        printf("               to %L\n", otherToSpecs)
        retOK
    )
)

Related Topics

Copy Preferences Form


Return to top
 ⠀
X