schUpdateUserSRCErrorAndWarn
schUpdateUserSRCErrorAndWarn(
x_nUserErr
x_nUserWarn
)
=> t / nil
Description
Increases the number of errors and warnings that are reported on the Schematic Check dialog box that appears after running the schematic rules checker (SRC) commands. This function is useful if you implement additional checks besides those provided by the schematic rules checker.
Arguments
Value Returned
|
Increased the number of errors and warnings that are reported on the Schematic Check dialog box that appear after running the SRC commands. |
|
Example
The schRegPostCheckTrigger function registers a new function which will be called after running the schematic rules checker. The procedure which follows creates markers according to your schematic rule checks, updates the local variables, and requests additional error and warning checks be included in the check report. The schUpdateUserSRCErrorAndWarn function shows the total number of errors and warnings in a dialog box after running the check.
; Register a function which will be called after running the schematic SRC checks.
schRegPostCheckTrigger( 'userSRC )
)
procedure( userSRC(cv nErr nWarn "dxx" ) printf( "Running userSRC rules checking....\n" )
nUserErr = 0
nUserWarn = 0
; Create markers according to your schematic rule checks. Update the local
; variables nUserErr and nUserWarn accordingly.
; (code omitted)
; Request additional error and warning checks to be included in the check
; report.
schUpdateUserSRCErrorAndWarn( nUserErr nUserWarn )
)
Increases the number of errors and warnings reported by the schematic rules checker by six and four, respectively.
schUpdateUserSRCErrorAndWarn ( 6 4 )
Return to top