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: Another one about reactions

You are not authorized to post a reply.   
Author Messages
LTOUSSAINT

11 Feb 2008 02:41 AM

The insert - inserted events are only available if we attach them to products, aren't they?

What I mean is, can we cling an "inserted" reaction to a CATPart, so when it is inserted the reaction fires up? I did it to a product, as the example from the doc says, but when I attach it to a part it doesn't go through with it.

Any ideas? and thanx for all the help.

Luis

DOUGSNELL

11 Feb 2008 01:52 PM
I believe you would use the 'Instantiation" event for Parts. I would assume the Insert event is for when a new Catia document is added to the CATProduct.
LTOUSSAINT

12 Feb 2008 10:16 AM

actually, I have tried the "instantiation" event and it doesn't work either. The "insert" event is to fire reactions when you insert something into a product and the "inserted" is when you fire reactions when a product is inserted into another, but i have not been able to fire a reaction when a part is inserted...

I don't know what else to try..

 

Thing is, "insert" "inserted" and "validateinsertion" are all product related events. Instantiation is a feature related event but it doesn't really work if you are only inserting a part into a product, it has more to do if you are pcopying a part.

When I was doing this same thing for a powercopy, DS and ROARKJE helped me figure out how to add reactions that would only fire when the pcopies where inserted, but I can't figure out how to do this when we insert a part...

DS_DEVELOPER

12 Feb 2008 11:07 AM
Hello,

Instantiation is specific to user features and document templates (and event is related to reaction owner)

Insert is an event that is fired when a product is inserted in the target product

Inserted is fired when the product that is the reaction source is inserted. For a part, there is a bypass: insert it in a temporary product and activate the product just above the part (the part's product). Then create the reaction at this level. Save the part. The reaction is not visible in the part itself but yet exists in the part document.
LTOUSSAINT

14 Feb 2008 01:57 AM
Awesome, thanx again DS, always right on the money.
Although it is a little counterintuitive isn't it? this means that I have to keep my temporary product or completely remake my part if I ever want to edit or edit out the reactions I'm attaching to them...
DS_DEVELOPER

14 Feb 2008 03:46 AM
Actually, you don't need to keep your temporary product. The "part's product" exists in the part document, and is persistent. Once you inserted your part in a product (which should run the reaction), you can edit the reaction in this context.
LTOUSSAINT

14 Feb 2008 04:02 AM
Hmmm, strange because I don't get this. When I insert the parts I get only the reaction but I can no longer see it in the product or in the part. The only thing I get is a parameter that was created by the reaction in the tree...
am I not selecting the right thing to react to? because it works, I just don't get to re-edit it.
DS_DEVELOPER

15 Feb 2008 09:40 AM
Hello,

I checked this scenario, and it works on R16 level. After part's instantiation, the reaction is ran, and it is visible in the tree in the product just above the instantiated part
LTOUSSAINT

27 Feb 2008 10:56 AM
Hello DS,

Sorry for the long delay, I was in formation and got caught up with a couple of issues here at work. The reaction works, thing is I was attaching it to the wrong thing, I re-attached it and ran it again and it works now. It only commes up once you insert the part, it is never visible in the part itself but once it is inserted into a product you can go back and change it.

Thanx for the help

luis
You are not authorized to post a reply.
Forums > COE Forums > KBE > Another one about reactions



ActiveForums 3.6

    

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