ocean script run from icfb
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
ocean script run from icfb

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence
Author Message
Shakti
Guest





Posted: Sat Dec 10, 2005 9:10 am    Post subject: ocean script run from icfb Reply with quote

Hi

I run ocean scripts from command line as well from icfb.
I want to run createNelist() if I run the script from icfb
The code should look someting like

if(blahblah()
then
design(libname cellname viewname)
createNetlist(?recreateAll t)
else
design(netlistfile)
)

The function blahblah() should tell me if I am running ocean from
command line
or icfb. Can anybody tell me if such a function already exists ?

Regards
Shakti

Back to top
Suresh Jeevanandam
Guest





Posted: Sun Dec 11, 2005 1:10 pm    Post subject: Re: ocean script run from icfb Reply with quote

Shakthi,
Just checking if an interactive command is callable should give you
whether you are inside the icfb or not.
if(isCallable('hiOpenWindow)
then
;you are inside the icfb
do soemthing
else
;you are not inside the icfb
do some other thing
)

regards,
Suresh
Back to top
Andrew Beckett
Guest





Posted: Mon Dec 12, 2005 1:10 am    Post subject: Re: ocean script run from icfb Reply with quote

Unfortunately the above wont' work, since hiOpenWindow() is callable from ocean.
Remember the ocean executable is actually graphical; just doesn't have a CIW...

So even hiGraphicMode() can't be used (well, unless you do "ocean -nograph").

You could use rexMatchp("awd" getVersion()) I suppose?

Andrew.

Back to top
Suresh Jeevanandam
Guest





Posted: Mon Dec 12, 2005 9:10 am    Post subject: Re: ocean script run from icfb Reply with quote

I thought ocean is a command line interface like the skill executable.

regards,
Suresh
Back to top
Guest






Posted: Mon Dec 12, 2005 9:10 am    Post subject: Re: ocean script run from icfb Reply with quote

I would rather say "command line interpreter". ocean is the executable,
OCEAN is the name for the convenience macros written in SKILL, the
language and skill is what we all need to get things to work. :-).

--
Svenn
Back to top
JoRobins
Guest





Posted: Mon Dec 12, 2005 1:10 pm    Post subject: Re: ocean script run from icfb Reply with quote

Well, icfb and ocean call two different startup files - icfb uses
..cdsinit & ocean uses .oceanrc if I remember right. So you should be
able to set a variable for instance - "icfbSession" in your .cdsinit to
"t" and to "nil" in your .oceanrc (or even undefined) and you should be
able to distinguish between the two by checking the value of the
variable.

Unless I'm missing something, this should work....

Good luck,
Jose
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB