How to invoke OCEAN script by SKILL?
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
How to invoke OCEAN script by SKILL?

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





Posted: Tue Oct 05, 2004 10:52 am    Post subject: How to invoke OCEAN script by SKILL? Reply with quote

Hi!
I have an OCEAN script which i have to automate by adding a menu that
i've written in SKILL. The problem is that i don't know whether there is
a possibility of invoking OCEAN script by SKILL and if i load SKILL from
OCEAN by writing:
..
..
..
load "skill.il"
..
..
..
OCEAN gets only initial values that it gets from the menu and therefore
the values remain unchanged.
So i wonder whether there is any way to overcome the problem.
Any help will be appreciated.


--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG

Back to top
Dmitriy Shurin
Guest





Posted: Tue Oct 05, 2004 4:46 pm    Post subject: Re: How to invoke OCEAN script by SKILL? Reply with quote

Hi fogh!
Thank you for your advice. Right now im not at work, but i've tried in
the form to do the following:
?callback "load("oceanscript.ocn")"
but i get an error message. Will load through a procedure work?




--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
Back to top
fogh
Guest





Posted: Tue Oct 05, 2004 6:05 pm    Post subject: Re: How to invoke OCEAN script by SKILL? Reply with quote

Your question is rather murky to me.
Just see ocean as being a superset of SKILL.

Dmitriy Shurin wrote:
Quote:
Hi!
I have an OCEAN script which i have to automate by adding a menu that
i've written in SKILL. The problem is that i don't know whether there is
a possibility of invoking OCEAN script by SKILL and if i load SKILL from
OCEAN by writing:
.
.
.
load "skill.il"
.
.
.
OCEAN gets only initial values that it gets from the menu and therefore
the values remain unchanged.
So i wonder whether there is any way to overcome the problem.
Any help will be appreciated.


Back to top
fogh
Guest





Posted: Tue Oct 05, 2004 7:58 pm    Post subject: Re: How to invoke OCEAN script by SKILL? Reply with quote

Dmitriy,

Sorry if the previous answer was shortish. Here is a little more.

Suppose your ocean script is "/home/joe/oceanscript.ocn"
You can define a callback function
procedure( MyOceanLoadingCallback()
load("/home/joe/oceanscript.ocn")
)

and then create a menu entry using stg like:
hiCreateMenuItem( ?name 'MyOceanLoadingMenuItem ?itemText "My first sony" ?callback "MyOceanLoadingCallback()" )

Dmitriy Shurin wrote:
Quote:
Hi!
I have an OCEAN script which i have to automate by adding a menu that
i've written in SKILL. The problem is that i don't know whether there is
a possibility of invoking OCEAN script by SKILL and if i load SKILL from
OCEAN by writing:
.
.
.
load "skill.il"
.
.
.
OCEAN gets only initial values that it gets from the menu and therefore
the values remain unchanged.
So i wonder whether there is any way to overcome the problem.
Any help will be appreciated.

Back to top
S. Badel
Guest





Posted: Wed Oct 06, 2004 11:47 am    Post subject: Re: How to invoke OCEAN script by SKILL? Reply with quote

I think your error message is because you have to escape the quotes with
backslashes in a string : "load(\"oceanscript.ocn\")". Otherwise, think
it should work.
stéphane

Dmitriy Shurin wrote:

Quote:
Hi fogh!
Thank you for your advice. Right now im not at work, but i've tried in
the form to do the following:
?callback "load("oceanscript.ocn")"
but i get an error message. Will load through a procedure work?



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
Contact Us
Powered by phpBB