lxCheckAndUpdateRegister
lxCheckAndUpdateRegister(t_appName g_path g_check g_update[?severityt_severity] [?objectt_objectType] [?checkFunctiont_checkFunction] [?updateFunctiont_updateFunction] [?configCBt_arcCallBackFunction] [?masterg_callCheckUpdateMaster] [?subMasterg_callCheckUpdateSubmaster] [?markersg_createMarkers] ) => t / nil
Description
Registers any user-defined SKILL check and update functions needed for the application readiness check.
Arguments
Value Returned
Examples
The example first specifies the callback functions layoutViewNameCheck and layoutViewNameUpdate and then registers them using lxCheckAndUpdateRegister.
The getHierPath function is not defined here. This function returns the hierarchy path as a string.
Define the function layoutViewNameCheck to check that every layout instance uses the layout view and reports if any views such as layout1 and layoutTmp are being used.
procedure(layoutViewNameCheck(srcPaths tgtPaths update)
let((res msg cv inst pathName)
res = tconc(nil nil)
foreach(path tgtPaths
inst = car(last(path))
unless(inst~>viewName == "layout"
if(update then
master = dbOpenCellViewByType(inst~>libName inst~>cellName "layout")
when(master
dbRemasterAnyInst(inst master)
)
else
pathName = getHierPath(path nil)
sprintf(msg "Layout view name - instance %s \t%s/%s" pathName inst~>cellName inst~>viewName)
tconc(res list(car(path) msg))
)
)
)
cdar(res)
)
)
Define the check and update functions:
procedure(layoutViewNameCheck(srcPaths tgtPaths)
layoutViewName(srcPaths tgtPaths nil)
)
procedure(layoutViewNameUpdate(srcPaths tgtPaths)
layoutViewName(srcPaths tgtPaths t)
)
Register the layoutViewNameCheck and layoutViewNameUpdate functions using lxCheckAndUpdateRegister.
lxCheckAndUpdateRegister( "Schematic v Layout" ; app
list("Custom" "Layout view name") ; path
t ; default value for check
t ; default value for update
?object "Inst"
?checkFunction "layoutViewNameCheck"
?updateFunction "layoutViewNameUpdate"
?severity "Error"
?markers t)
Return to top