how to set single bindkey for DCOP and DC node voltages

Y

yvk

Guest
I use these to set bindkeys for each of DC annotations.
--------
hiSetBindKeys( "Schematics" list(
list( "<Key>F5" "(when (sevSession (hiGetCurrentWindow)) (sevAnnotateResults (sevSession (hiGetCurrentWindow)) 'dcNodeVoltages)) ")
list( "<Key>F6" "(when (sevSession (hiGetCurrentWindow)) (sevAnnotateResults (sevSession (hiGetCurrentWindow)) 'defaults)) ")
list( "<Key>F7" "(when (sevSession (hiGetCurrentWindow)) (sevAnnotateResults (sevSession (hiGetCurrentWindow)) 'dcOpPoints)) ")
))
--------



how to merge all actions into a single bindkey? Or atleast both DCOPs and DC node voltages.

Thanks,
yvk
 
On 08/22/12 17:43, yvk wrote:
I use these to set bindkeys for each of DC annotations.
--------
hiSetBindKeys( "Schematics" list( list( "<Key>F5" "(when (sevSession
(hiGetCurrentWindow))
(sevAnnotateResults (sevSession (hiGetCurrentWindow)) 'dcNodeVoltages)) ")
list( "<Key>F6" "(when (sevSession (hiGetCurrentWindow))
(sevAnnotateResults (sevSession (hiGetCurrentWindow)) 'defaults)) ")
list( "<Key>F7" "(when (sevSession (hiGetCurrentWindow))
(sevAnnotateResults (sevSession (hiGetCurrentWindow)) 'dcOpPoints)) ")
))
--------



how to merge all actions into a single bindkey? Or atleast both DCOPs and DC node voltages.

Thanks,
yvk
Just call sevAnnotateResults() more than once in the body of the when()
in your bindkey. For example:

(when (sevSession (hiGetCurrentWindow))
(sevAnnotateResults (sevSession (hiGetCurrentWindow)) 'dcNodeVoltages)
(sevAnnotateResults (sevSession (hiGetCurrentWindow)) 'dcOpPoints)
)

Maybe I've missed something in your question, because this seems pretty
obvious to me...

Andrew.
 
thanks it works, I am a bit new to these.

-yvk

On Tuesday, September 4, 2012 3:46:19 PM UTC+5:30, Andrew Beckett wrote:
On 08/22/12 17:43, yvk wrote:

I use these to set bindkeys for each of DC annotations.

--------

hiSetBindKeys( "Schematics" list( list( "<Key>F5" "(when (sevSession

(hiGetCurrentWindow))

(sevAnnotateResults (sevSession (hiGetCurrentWindow)) 'dcNodeVoltages)) ")

list( "<Key>F6" "(when (sevSession (hiGetCurrentWindow))

(sevAnnotateResults (sevSession (hiGetCurrentWindow)) 'defaults)) ")

list( "<Key>F7" "(when (sevSession (hiGetCurrentWindow))

(sevAnnotateResults (sevSession (hiGetCurrentWindow)) 'dcOpPoints)) ")

))

--------







how to merge all actions into a single bindkey? Or atleast both DCOPs and DC node voltages.



Thanks,

yvk





Just call sevAnnotateResults() more than once in the body of the when()

in your bindkey. For example:



(when (sevSession (hiGetCurrentWindow))

(sevAnnotateResults (sevSession (hiGetCurrentWindow)) 'dcNodeVoltages)

(sevAnnotateResults (sevSession (hiGetCurrentWindow)) 'dcOpPoints)

)



Maybe I've missed something in your question, because this seems pretty

obvious to me...



Andrew.
 

Welcome to EDABoard.com

Sponsor

Back
Top