Hide Table of Contents
AddCornerReliefType Method (IFeatureManager)

Specifies the type of corner relief to apply to the specified corner of the selected sheet metal body.

.NET Syntax

Visual Basic (Declaration) 
Function AddCornerReliefType( _
   ByVal CornerIndex As System.Integer, _
   ByVal ReliefType As System.Integer, _
   ByVal Length1 As System.Double, _
   ByVal Length2 As System.Double, _
   ByVal Length3 As System.Double, _
   ByVal CenterOnBendLines As System.Boolean, _
   ByVal RatioToThickness As System.Boolean, _
   ByVal TangentToBend As System.Boolean, _
   ByVal AddFilletedCorners As System.Boolean, _
   ByVal NarrowCorner As System.Boolean _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As IFeatureManager
Dim CornerIndex As System.Integer
Dim ReliefType As System.Integer
Dim Length1 As System.Double
Dim Length2 As System.Double
Dim Length3 As System.Double
Dim CenterOnBendLines As System.Boolean
Dim RatioToThickness As System.Boolean
Dim TangentToBend As System.Boolean
Dim AddFilletedCorners As System.Boolean
Dim NarrowCorner As System.Boolean
Dim value As System.Boolean
 
value = instance.AddCornerReliefType(CornerIndex, ReliefType, Length1, Length2, Length3, CenterOnBendLines, RatioToThickness, TangentToBend, AddFilletedCorners, NarrowCorner)
C# 
System.bool AddCornerReliefType( 
   System.int CornerIndex,
   System.int ReliefType,
   System.double Length1,
   System.double Length2,
   System.double Length3,
   System.bool CenterOnBendLines,
   System.bool RatioToThickness,
   System.bool TangentToBend,
   System.bool AddFilletedCorners,
   System.bool NarrowCorner
)
C++/CLI 
System.bool AddCornerReliefType( 
&   System.int CornerIndex,
&   System.int ReliefType,
&   System.double Length1,
&   System.double Length2,
&   System.double Length3,
&   System.bool CenterOnBendLines,
&   System.bool RatioToThickness,
&   System.bool TangentToBend,
&   System.bool AddFilletedCorners,
&   System.bool NarrowCorner
) 

Parameters

CornerIndex
Index of corner to which to apply the corner relief; -1 to apply it to the corner last added with IFeatureManager::AddCornerReliefCorner
ReliefType
Type of corner relief as defined by swCornerReliefType_e
Length1
Not used
Length2

If ReliefType is swCornerReliefType_e... Then Length2 is the slot...

swCornerSquareRelief

Length of the corner relief

swCornerObroundRelief

Length of the corner relief
swCornerCircularRelief Radius of the corner relief

Length3

If ReliefType is swCornerReliefType_e... Then Length3 is...
swCornerObroundRelief Slot width of the corner relief
swCornerSquareRelief and FilletedCorners = true Radius of filleted corner

CenterOnBendLines

True to center the corner relief relative to the bend lines, false to not; valid only if ReliefType is one of the following:

  • swCornerReliefType_e.swCornerSquareRelief
  • swCornerReliefType_e.swCornerCircularRelief
  • swCornerReliefType_e.swCornerObroundRelief
RatioToThickness

True to use a ratio value to cut the bend area so that the body can be folded, false to not; the ratios for valid relief types are calculated as follows where t = thickness of sheet metal:

If ReliefType is swCornerReliefType_e... Then ratios are...

swCornerSquareRelief

Length2/t

swCornerCircularRelief

Length2/t

swCornerObroundRelief

Length2/t and Length3/t

TangentToBend
True to make the corner relief tangent to the inside bend edges, false to not
AddFilletedCorners
True to fillet the corner relief corners, false to not; valid only if ReliefType = swCornerReliefType_e.swCornerSquareRelief
NarrowCorner

True to use the algorithm for large bend radii to narrow the corner relief in the bend area, false to not; valid only if ReliefType is one of the following:

  • swCornerReliefType_e.swCornerSquareRelief
  • swCornerReliefType_e.swCornerCircularRelief
  • swCornerReliefType_e.swCornerObroundRelief

Return Value

True if successful, false if not

Example

Remarks

To create a corner relief feature:

  1. Call IModelDocExtension::SelectByID2 with Mark = 0 and Append = true to select the sheet metal body in which to create a corner relief feature.
  2. Call IModelDocExtension::SelectByID2 with Mark = 4 and Append = true to select two faces that form a bend corner.
  3. Call IFeatureManager::AddCornerReliefCorner to add the corner to the corner relief feature. 
  4. Call this method to specify the corner relief for the corner. 
  5. Repeat steps 2 - 4 to add another corner to the corner relief feature.
  6. Call IFeatureManager::FinishCornerRelief.
 

See Also

Availability

SOLIDWORKS 2014 FCS, Revision Number 22.0


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   AddCornerReliefType Method (IFeatureManager)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2019 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.