Welcome to the COE Discussion Forum! 

 

To participate in the discussion forum, you must be logged in to the website.  If you forget your login information, please contact COE Headquarters at coe@coe.org or (800) 263-2255.

If you are new to the COE Discussion Forum and would like to participate, please register.


Forum Highlight: CATIA V6

 

Get Answers to Your V6 Questions
Dassault Systèmes answers user questions about CATIA V6.  Discuss these answers and propose new questions with end users from around the world in the CATIA V6 Forum.

COE DISCUSSION FORUM
Subject: Calling two scripts at one operation

You are not authorized to post a reply.   
Author Messages
chaya.hk

26 Aug 2008 07:00 AM

Hi All,

Can two different scripts be called at a single operation?

For example: I want to hook a script at Documents/Check Out After Operation. But a different script is hooked for one of the CATIA Classes under Documents. Can both the scripts be called at the same operation?

Please suggest

Thanks in advance

Chaya

JONR

26 Aug 2008 09:24 AM
Chaya,

Write one script which branches for each class you want to work with and place it at the uppermost class.
eg if you have a word doc and a catia doc put the script on the documents class

If catpart and catproduct then place the script on the catia class.

In the script you should find the correct class for the object and use Case Select statement or if then else structure as appropriate. In each branch carry out the actions you had originally planned.


Jon

You are not authorized to post a reply.
Forums > COE Forums > SmarTeam > Calling two scripts at one operation



ActiveForums 3.6

    

401 North Michigan Avenue, Chicago, IL 60611-4267 | (312) 321-5153 | (800) COE-CALL (U.S.)