bind ADE netlist and run to a key

S

Svenn Are Bjerkem

Guest
Hi,

I try to bind the . key to netlist and run in ADE. Here is what I try:
(hiSetBindKey "schematic" "<Key>."
"(sevNetlistAndRun (asiGetCurrentSession))")

sevNetlistAndRun() seems to be the proper function, but it takes an
argument, session.

I have obviously a problem finding the current session because the
function doesn't work as I expect:

To check the function, I tried
sevNetlistAndRun(asiGetCurrentSession()) on the CIW command line, and
got the message

*Error' slotValue: no such slot - simID

Any Idea?

Kind regards,
--
Svenn
 
I did the following and it works, as long as you started ADE from within
the schematic, or inversely opened the schematic from ADE.

sevNetlistAndRun( sevSession( hiGetCurrentWindow() ) )

cheers,

stéphane


Svenn Are Bjerkem wrote:
Hi,

I try to bind the . key to netlist and run in ADE. Here is what I try:
(hiSetBindKey "schematic" "<Key>."
"(sevNetlistAndRun (asiGetCurrentSession))")

sevNetlistAndRun() seems to be the proper function, but it takes an
argument, session.

I have obviously a problem finding the current session because the
function doesn't work as I expect:

To check the function, I tried
sevNetlistAndRun(asiGetCurrentSession()) on the CIW command line, and
got the message

*Error' slotValue: no such slot - simID

Any Idea?

Kind regards,
 
S. Badel wrote:
I did the following and it works, as long as you started ADE from within
the schematic, or inversely opened the schematic from ADE.

sevNetlistAndRun( sevSession( hiGetCurrentWindow() ) )
Excellent!!,

just to make the thread documentation complete:
In order to make a shortcut for the netlist and run function in Analog
Design Environment, add following line to end of .cdsinit

Lispish:
(hiSetBindKey "schematic" "<Key>."
"(sevNetlistAndRun ((sevSession (hiGetCurrentWindow)))")

Skillish:
hiSetBindKey( "schematic" "<Key>."
"sevNetlistAndRun(sevSession(hiGetCurrentWindow()))")

This could then be extended to also include check and save, but as there
is a shortcut available for that already it is left as an exersise for
the reader.

Kind regards,
--
Svenn
 

Welcome to EDABoard.com

Sponsor

Back
Top