Hide Table of Contents
InsertSheetMetalHem2 Method (IFeatureManager)

Inserts a hem of the specified relief type at the selected edges of the current sheet metal part.

.NET Syntax

Visual Basic (Declaration) 
Function InsertSheetMetalHem2( _
   ByVal Type As Integer, _
   ByVal Position As Integer, _
   ByVal Reverse As Boolean, _
   ByVal DLength As Double, _
   ByVal DGap As Double, _
   ByVal DAngle As Double, _
   ByVal DRad As Double, _
   ByVal DMiterGap As Double, _
   ByVal PCBA As CustomBendAllowance, _
   ByVal UseDefaultRelief As Boolean, _
   ByVal ReliefType As Integer, _
   ByVal ReliefTearTypes As Integer, _
   ByVal UseReliefRatio As Boolean, _
   ByVal ReliefRatio As Double, _
   ByVal ReliefWidth As Double, _
   ByVal ReliefDepth As Double _
) As Feature
Visual Basic (Usage) 
Dim instance As IFeatureManager
Dim Type As Integer
Dim Position As Integer
Dim Reverse As Boolean
Dim DLength As Double
Dim DGap As Double
Dim DAngle As Double
Dim DRad As Double
Dim DMiterGap As Double
Dim PCBA As CustomBendAllowance
Dim UseDefaultRelief As Boolean
Dim ReliefType As Integer
Dim ReliefTearTypes As Integer
Dim UseReliefRatio As Boolean
Dim ReliefRatio As Double
Dim ReliefWidth As Double
Dim ReliefDepth As Double
Dim value As Feature
 
value = instance.InsertSheetMetalHem2(Type, Position, Reverse, DLength, DGap, DAngle, DRad, DMiterGap, PCBA, UseDefaultRelief, ReliefType, ReliefTearTypes, UseReliefRatio, ReliefRatio, ReliefWidth, ReliefDepth)
C# 
Feature InsertSheetMetalHem2( 
   int Type,
   int Position,
   bool Reverse,
   double DLength,
   double DGap,
   double DAngle,
   double DRad,
   double DMiterGap,
   CustomBendAllowance PCBA,
   bool UseDefaultRelief,
   int ReliefType,
   int ReliefTearTypes,
   bool UseReliefRatio,
   double ReliefRatio,
   double ReliefWidth,
   double ReliefDepth
)
C++/CLI 
Feature^ InsertSheetMetalHem2( 
&   int Type,
&   int Position,
&   bool Reverse,
&   double DLength,
&   double DGap,
&   double DAngle,
&   double DRad,
&   double DMiterGap,
&   CustomBendAllowance^ PCBA,
&   bool UseDefaultRelief,
&   int ReliefType,
&   int ReliefTearTypes,
&   bool UseReliefRatio,
&   double ReliefRatio,
&   double ReliefWidth,
&   double ReliefDepth
) 

Parameters

Type
Type as defined in swHemTypes_e
Position

Position as defined in swHemPositionTypes_e

Reverse

True reverses the direction, false does not

DLength

Hem length; valid only for open or closed hems

DGap

Gap distance; valid only for open hems

DAngle

Hem angle; valid only for tear-drop or rolled hems

DRad

Hem radius; valid only for tear-drop or rolled hems

DMiterGap

Hem miter gap

PCBA

If...

Then...

non-NULL

Pointer to ICustomBendAllowance object for which required values have been set

NULL

Parent bend's bend allowance is used

UseDefaultRelief
True to use the default relief, false to use the relief specified by ReliefType
ReliefType

Type of relief as defined in swSheetMetalReliefTypes_e; valid only if UseDefaultRelief is false

ReliefTearTypes

Type of relief tear as defined in  swReliefTearTypes_e; valid only when:

  • UseDefaultRelief is false

    - and -

UseReliefRatio

True to use ReliefRatio, false to use ReliefWidth/ReliefDepth; valid only when:

  • UseDefaultRelief is false

    - and -

ReliefRatio

Relief ratio; valid only when:

  • UseDefaultRelief is false

    - and -

  • UseReliefRatio is true

    - and -

ReliefWidth

Width of the relief; valid only when:

  • UseDefaultRelief is false

    - and -

  • UseReliefRatio is false

    - and -

ReliefDepth

Depth of the relief; valid only when:

  • UseDefaultRelief is false

    - and -

  • UseReliefRatio is false

    - and -

Return Value

IFeature

Example

Remarks

Before calling this method:

  1. Call IFeatureManager::CreateCustomBendAllowance to create an instance of ICustomBendAllowance.
  2. Initialize the CustomBendAllowance object.
  3. Assign PCBA to the initialized CustomBendAllowance object.
  4. Select one or more edges in the sheet metal model to which to add the specified hem.
 

See Also

Availability

SolidWorks 2011 SP03, Revision Number 19.3


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:   InsertSheetMetalHem2 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) 2012 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.