; To have the Sonnet Cadence Virtuoso Interface automatically load into the Cadence Virtuoso
; Environment, please copy and paste the code below into your .cdsinit file located in the
; following directory <cadence-install-directory>/tools/dfII/local where
; <cadence-install-directory> is the directory in which Cadence was installed.
; The purpose of this code is to check if the environment variable SONNET_DIR exists and is set. 
; If it is set, then the interface will be loaded.  If it is not set, a message will appear in
; Cadence's CIW informing the user that Sonnet is not set up properly. For instructions on setting
; SONNET_DIR, see the "User Environment Setup" directions in Sonnet's UNIX Installation Manual.


;#############################################################################################
;#
;# SONNET CADENCE VIRTUOSO INTERFACE SETUP
;#
;#############################################################################################

aSonnetDir = getShellEnvVar("SONNET_DIR")

if(aSonnetDir != nil then
  loadi(strcat(aSonnetDir "/data/soncad_install.il"))
else
  printf("***The sonnet directory is not set and the Sonnet Cadence Virtuoso Interface is unable to be installed.***\n")
); if
