Feature status

Hello

I have trouble with the Features status

I make the Extruded protrusion and extruded cuttout.

 

I want to check if the cuttout is ok

 

[i]If objExtCut.Status = SolidEdgePart.FeatureStatusConstants.igFeatureOK Then

 

Console.WriteLine("OK No problem")

 

Else

Console.WriteLine("Issue!")

' Do this code...

'

'

'regen

End If[/i]

 

 

so and problem is in case, when the cuttout is placed out of protrusion /no interference/,

the status in not igFeatureFailed but there is a error {"Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))"}

 

any tips how to obtain igFeatureFailed status to do code in IF?

 

Posted by: Tibor
Post date: 8/6/2012 6:04:12 AM