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: Deactivating a Feature In Error

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

06 Sep 2005 07:59 AM
Has anyone figured out a way to deactivate a feature that is in error.

Is there some parameter associated with a error feature that I can access,

then use a rule to deactivate it based on the value of this parameter.

Or alternatively does anyone have any work arounds.

Thanxs In Adv

Nev
BPRASAD


06 Sep 2005 09:23 AM
One way to find out ,whether or not a feature was created sucessfully, is to insert an identifying attribute say "myfeatureX = true" after a feature was created sucessfully from your perspectives.

If the feature is created sucessfully you reset this ("myfeatureX" attribute) to true (using KWA rule), otherwise it would stay false.
"myfeatureX" was defaulted at the beginning. Say ("myfeatureX = false").

In the latter part of your CATIA V5 tree, you could then build your logics (e.g. activating or deactivating certain desired functions) based on whether or not "myfeatureX" is equal to true or false.

I don't know whether or not there is a "built-in" error trapping functions in CATIA V5.

Brian Prasad
COE-DPC/KBE Chairperson
NEVJOHNSON

07 Sep 2005 12:14 PM
Hi,


I am more interested in the feature being created from CATIA's perspectives.

If the feature is created successfully (or unsucessfully) from CATIA's perspectives is there a parameter that tells

me this?


Thanks


Nev
codewriter

07 Sep 2005 03:04 PM
i saw this post and wasn't quite sure what you needed but i'm think this will do the trick

'before making a feature clear errors using:
Err.Clear
'make a feature, let's say oPadEWan
'do an update on the CAT document's root part
'Next Line is Important
on error resume next
partdoc.Part.Update

'catch the error
if err.number<>0 then
'you feature was not made correctly
'the feature can be deleted or inactivated at this point
'to deactivate
partdoc.Part.Inactivate(oPadEWan)

look in the help documentation for: inactivate

NEVJOHNSON

07 Sep 2005 03:13 PM
Codewriter,

Yes thats fine using VB but I need to do it using a KWA rule.

Basically I have a part template that contains a hole defined by the Up to Next feature.

In some instances the hole will start in fresh air and the up to Next feature will fail.

I cannot use the Dimension option in this instance. But I want to deactivate the feature mentioned should the
feature ever fail.

Regs

Nev
IPHILLIPS

07 Sep 2005 05:31 PM
If you can re-create the feature inside the rule, you can see if it is in error:
In this example I recreate the projection.
If it projects ok, the original projection feature is activated.
If it misses, it is deactivated
-------------------------
let c(curve)
c=project(Set\Sketch ,Set\Surf )
if(c.Error==false)
{
Set\Project.1\Activity =true
}
else
{
Set\Project.1\Activity =false
}
-------------------------


Ian Phillips. FORCEFIVE AG, Munich, Germany
THUNDERLASSE

14 Jul 2006 04:33 PM
Excellent,

Ian reveals secrets how to make a ready "GUP" for Error detection!

I just wonder; .Error should work also for elements created outside of the rule or should it?

...maybe detecting error of feature + deactivating same feature creates an update loop that forces to use a temporary let element... need to test.

BR,
Lasse
IPHILLIPS

31 Jul 2006 03:53 AM
What does GUP mean?

Ian Phillips. FORCEFIVE AG, Munich, Germany
NEVJOHNSON

01 Aug 2006 08:58 AM
Generic Useless Part?
THUNDERLASSE

04 Aug 2006 05:12 AM
Hi,

I personally hate that in IT business everyone uses three letter short-versions about things they want to say... It is stupid to make assumptions that all little things defined before could be remembered . .. but I never said I wouldn't be stupid

About GUP you can read from this thread

Basicly what I collect and need are "little lower level tools that can be used in many templates" as you said. For me a GUP can be not only an exact tool, but also Idea or Method how to do certain sub-task.

Here on this case I found a complete way to handle some errornous cases of powercopy insertion. Thanks!

Br,
Lasse

THUNDERLASSE

09 Aug 2006 05:51 AM
Hi Ian & co.

I tried to make a basic Surface planarity check with following rule:


let pl1 (plane)
pl1=plane(`Geometrical Set.2\Boundary.1` )
if (pl1.Error==false)
Planar =true
else
Planar = false

Boundary.1 is boundary of surface to be checked, if boundary is planar, surface is propably planar. Planar is a boolean parameter.

Thuis works otherwise fine, but when pl1 is in error state, it gives an error message in catia that "Rule evaluation error" which is annoing.

Do you know how to get rid of this?

BR,
Lasse
THUNDERLASSE

09 Aug 2006 05:54 AM
Blah,

A beginners mistake, of course there is a button in Properties "Do not catch evaluation errors"

Now it works

BR,
Lasse
IPHILLIPS

10 Aug 2006 05:59 AM
Lasse
You could have also edited your last post and removed the fatal question. Now we all know that you too make mistakes!:-)

Like me who keeps forgetting to change my avatar picture every week!
My daughter is twice as old as she was in my picture!

Ian Phillips. FORCEFIVE AG, Munich, Germany
THUNDERLASSE

10 Aug 2006 02:11 PM
Hi Ian,

Yes, I could edit it, but if I remove my mistake there is no much of a topic left; I would have to figure out something like "nice day, la la laa..." to fill that message. ...hmmm, actually sounds like good idea, I'll start going through all my past messages and sensor out all dump jokes and spelling errors... that'll keep me busy for a while.

BR,
Lasse

You are not authorized to post a reply.
Forums > COE Forums > KBE > Deactivating a Feature In Error



ActiveForums 3.6

    

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