I created a function which should be started with ADE-L or ADE-XL launching.
For triggering I placed envSetVal("asimenv.startup" "sessInitTrigFunc" 'string "func_name") in .cdsinit file.
One of the features of procedure func_name posted bellow is to find the cell name and library where the ADE-L or ADE-XL is started, no matter if it is started form Schematics or Library Manager:
I am finding the cell name and library name manipulating the result string from hiGetWindowName command of ADE or ADE-XL window.
This approach works for IC6 because there the last three words form that command are library name, cell name and view type, but in IC5 these words are missing in the hiGetWindowName command result.
Could some body give me advice how to overcome the problem for IC5?
Thanks in advance!
You can do something like this:
procedure(YourFunc(thing) printf("DESIGN: %L %L %L\n" asiGetDesignLibName(thing) asiGetDesignCellName(thing) asiGetDesignViewName(thing)))
In other words, use asiGetDesign*Name functions to get the design in ADE. Parsing the window name is really not a good idea, because somebody might customize it and change it - and also there's no guarantee we'll keep writing it the same way.