schRegPostCheckTrigger
schRegPostCheckTrigger(s_functionName[g_onceOnly] ) => t / nil
Description
Registers a function that will be called after a schematic is checked using the Check – Current Cellview or Check – Hierarchy commands. The called function must be defined to accept three arguments: the cellview ID of the schematic, the number of errors encountered, and the number of warnings encountered during the check.
If your registered function implements additional checks, consider also using schUpdateUserSRCErrorAndWarn.
There are limitations to be aware of when using schRegPostCheckTrigger:
-
schRegPostCheckTriggerdoes not update the last checked timestamp. - If the trigger function calls any SKILL functions that modify the schematic database, you must ensure that these functions do not break the connectivity of the design.
Arguments
Value Returned
|
Registers a function that will be called after a schematic is checked. |
|
Examples
Registers userSRC as a function to be called after the specified cellview is checked.
procedure( userSRC(cv nErr nWarn "dxx") let( (current (nUserErr 0) (nUserWarn 0))
printf( "Running userSRC ...\n" )
; Remember if connectivity is up to date.
current = dbIsConnCurrent(cv)
; Create markers according to your schematic rule checks. Update the
; local variables nUserErr and nUserWarn accordingly.
; (code omitted)
; Include additional errors and warnings in the check report totals.
schUpdateUserSRCErrorAndWarn(nUserErr nUserWarn)
when(current && nUserErr == 0
; Zero errors, connectivity remains up to date.
dbSetConnCurrent(cv))
)
)
schRegPostCheckTrigger( 'userSRC )
Related Topics
Return to top