dbClearUnusedOccShapeColorData
dbClearUnusedOccShapeColorData(d_cellView[ ?dryRun { t | nil } ] [ ?ignoreUnboundRefs { t | nil } ] ) =>x_numClearedObjects/ nil
Description
Opens hierarchy below the given cellview and removes all occShape coloring data that does not have any effect on the display of coloring data in the opened hierarchy. By default, if some instances or vias in the hierarchy cannot be bound, the function prints a warning message and returns nil, but cleanup can be forced with the ignoreUnboundRefs argument.
Suppose you do out-of-context edits, such as destroy, stretch, or move the master shape to a design that contains master shape of the hierarchical color lock (HCL). Now if this is the shape on which HCL is set, then HCL might not be visible when you open this top design. In this case, HCL data in the top design is retained but becomes unused. This function helps cleanup this data.
Until hierarchy is fully open it is not possible to distinguish between used or unused HCL data. The dbClearUnusedOccShapeColorData helps you view the unused data and clear it. This function does not cleanup HCL violations.
Arguments
Value Returned
Example
;; Open cellview 'myLib/myCell/myLayout":
window = geOpen(?lib "myLib" ?cell "myCell" ?view "myLayout")
cellView = geGetEditCellView(window)
;; Just open hierarchy and count unused data:
dbClearUnusedOccShapeColorData(cellview ?dryRun t) ; for example, returns 5
;; Remove unused data:
dbClearUnusedOccShapeColorData(cellview) ; should return 5, too
;; Save changes:
dbSave(cellview)
Return to top