Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to check when you inserted or removed parts to an assembly - CATIA V5 ADVISOR

Status
Not open for further replies.

eduardopinto07

Automotive
Feb 28, 2014
20
Hello colleagues,

I am trying to learn how to create a knowledgeware advisor reaction to check if a part was inserted or removed from an assembly in CATIA V5.
NO VBA, VB, CATScript.
I need help with advisor.

Any help will be really appreciated.

Best regards

Eduardo
 
Replies continue below

Recommended for you

there is a reaction trigger event "insert" and "remove", but it only works on products...
so if all your parts are wrapped in a product then [wink]


regards,
LWolf
 
@little Cthulhu,
I learned a lot with all your VB, VBA tips, all because of that I traveled the world (Germany, China, and now USA) using programming to help the companies that I worked. Thanks a lot! I am since 2010 using VBA, VB.net, etc + CATIA (Assembly, Part, Kinematic, Simulation,...) all good stuff!
I am testing CATIA 3DExp and I heard from Dassault that, moving forward, they are implementing more and more APLs for EKL and that this is the path moving forward.
They told me that currently EKL has 3x more APLs than VBA. I was surprised....
Now, I am trying to adapt and learn EKL and the knowledgeware packs...

@LWolf,
Thanks a lot for sharing...Do you have any example? As you know....the documentation is "great"....
My Goal is to:
1)Create an assembly
2)Create an assembly parameter: Parameter1:("Will be used to sum all the thickness + Tolerance from all the parts that I insert or remove from this assembly through the reaction)
(All my parts, that will be part of this assembly will contain:
- Thickness parameter: Ex: 3mm
- Upper tolerance parameter Ex: 0.1mm
1)Insert or remove parts from an assembly
2)trigger the reaction
3)recalculate the assembly parameter

Any ideas will be very appreciated.

Again, thanks a lot....It is a pleasure to talk to the masters! I will be always in debt!

Best regards

Eduardo
 
What about populating parameter with a Rule? It should act like a kind of unconditional reaction.
 
I believe a Rule is a static feature, this is the reason I was looking for action or reaction.
Could you elaborate a little more using your idea?
My questions:
-How the rule will be triggered?
-How to use in a scenario where I can have 8 parts inside the assembly for a project gate and after the road test, for the next gate, I need more 10 (18 parts). On the next gate I will need to remove 3 (15).
This calculation and the resultant value will be read by a length in another part (The part that will hold all the parts that I am inserting on this assembly).
 
(All my parts, that will be part of this assembly will contain:
- Thickness parameter: Ex: 3mm
- Upper tolerance parameter Ex: 0.1mm

And there's a fundamental problem in how EKL works with parameters. It treats them as values, not as objects, so you can't simply write part->Query("Literal", "x.Name == \"Thickness\"")

You have to use VB action to get parameter by name.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor