Reply

How to check for errors in sheet metal?

I am making some changes to the variables and every once in a while a part sheet metal comes up with an error in the Error Assistant.. For example: Hole 1 Failed Operation unsuccessful or Flatten 1 Failed System Error..

 

Is there any way to get the list of errors from the error assistant? or just to know if a part has any errors on it at all?

 

Posted by: maury terneus
Post date: 6/27/2013 10:18:08 AM

4 REPLIES

How to check for errors in sheet metal?

Yuou should iterate through the DesignEdgebarFeatures and query the status of each feature. This gives you its status (OK, Failed, Warned, RolledBack, Suppressed) and in case of failure, the error description itself.

 

Posted by: Martin Bernhard
Post date: 6/28/2013 3:31:52 AM

How to check for errors in sheet metal?

Martin,

 

Thanks for the reply! I am trying to do as you said but I am failing Smiley Sad

 

 

Dim smDoc As SheetMetalDocument = CType(_objApplication.ActiveDocument, SheetMetalDocument)

Dim edgebarFeatures As EdgebarFeatures = smDoc.DesignEdgebarFeatures

 

 

For k As Integer = 1 To edgebarFeatures.Count

 

Dim feature As Object = edgebarFeatures.Item(i)

Dim objectType As SolidEdgeConstants.ObjectType = CType(feature.Type, SolidEdgeConstants.FeatureTypeConstants)

 

Dim statusdsc As Object

Dim result As FeatureStatusConstants = feature.Status()

 

Next

 

 

Everything is showing as OK even tho i see errors. Am i doing something wrong?

 

Posted by: maury terneus
Post date: 6/28/2013 10:09:45 AM

How to check for errors in sheet metal?

Nvm, i think i found the problem! wrong index!

 

Posted by: maury terneus
Post date: 6/28/2013 10:20:14 AM

How to check for errors in sheet metal?

Perfect, thank you Smiley Happy

 

Posted by: maury terneus
Post date: 6/28/2013 10:42:48 AM