Allegro System Capture App Notes

Design Rule Checks

Issue link: https://resources.pcb.cadence.com/i/1180236

Contents of this Issue

Navigation

Page 5 of 9

Design Rule Checks in Allegro System Capture Learn more at Cadence Support Portal - https://support.cadence.com © 2019 Cadence Design Systems, Inc. All rights reserved w orldw ide. Page 6 • $CDS_SITE/cdssetup/canvas/rules/custom – If a custom site is defined, place the rules file at $HOME/cdssetup/canvas/rules/custom – You can also place the rules file in your HOME area. After a custom rules file is placed, create a tclIndex file for the custom rules using the auto_mkIndex Tcl command from a Tcl shell. A standalone Tcl shell is supplied with Cadence SPB installation at: /tcltk/bin/tclsh. Allegro System Capture Tcl Graphics API Basic Scripting Tcl Types The following table lists some basic scripting Tcl types along with their descriptions: Tcl Type Description dbId Unique ID associated with an object. Example db:0000002a dbPoint List of x and y coordinates. Example {0 100} dbBox List of two dbPoints denoting the upper-left and lower-right coordinates of a rectangle. Example {{0 0} {100 100}} dbBool Boolean (True/False) value dbType Type number denoting the type of an object DB API Table of Tcl Procedures The sch namespace should be prefixed to each of the Tcl API functions. Example: The following call returns a list of selected items on the current page: set selItem [sch::dbGetSelectedItems [sch::dbGetActivePage]] The following table lists the supported Tcl DB APIs: # Name ARG1 ARG2 RETURN TYPE Description 1 dbConvertToDBUnits number number Converts number in user units to database units 2 dbConvertToUserUnits number number Converts number in database units to user units 3 dbGetActivePage dbId returns the dbId of the active page

Articles in this issue

Links on this page

view archives of Allegro System Capture App Notes - Design Rule Checks