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 System.Integer, _
   ByVal Position As System.Integer, _
   ByVal Reverse As System.Boolean, _
   ByVal DLength As System.Double, _
   ByVal DGap As System.Double, _
   ByVal DAngle As System.Double, _
   ByVal DRad As System.Double, _
   ByVal DMiterGap As System.Double, _
   ByVal PCBA As CustomBendAllowance, _
   ByVal UseDefaultRelief As System.Boolean, _
   ByVal ReliefType As System.Integer, _
   ByVal ReliefTearTypes As System.Integer, _
   ByVal UseReliefRatio As System.Boolean, _
   ByVal ReliefRatio As System.Double, _
   ByVal ReliefWidth As System.Double, _
   ByVal ReliefDepth As System.Double _
) As Feature
Visual Basic (Usage) 
Dim instance As IFeatureManager
Dim Type As System.Integer
Dim Position As System.Integer
Dim Reverse As System.Boolean
Dim DLength As System.Double
Dim DGap As System.Double
Dim DAngle As System.Double
Dim DRad As System.Double
Dim DMiterGap As System.Double
Dim PCBA As CustomBendAllowance
Dim UseDefaultRelief As System.Boolean
Dim ReliefType As System.Integer
Dim ReliefTearTypes As System.Integer
Dim UseReliefRatio As System.Boolean
Dim ReliefRatio As System.Double
Dim ReliefWidth As System.Double
Dim ReliefDepth As System.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( 
   System.int Type,
   System.int Position,
   System.bool Reverse,
   System.double DLength,
   System.double DGap,
   System.double DAngle,
   System.double DRad,
   System.double DMiterGap,
   CustomBendAllowance PCBA,
   System.bool UseDefaultRelief,
   System.int ReliefType,
   System.int ReliefTearTypes,
   System.bool UseReliefRatio,
   System.double ReliefRatio,
   System.double ReliefWidth,
   System.double ReliefDepth
)
C++/CLI 
Feature^ InsertSheetMetalHem2( 
&   System.int Type,
&   System.int Position,
&   System.bool Reverse,
&   System.double DLength,
&   System.double DGap,
&   System.double DAngle,
&   System.double DRad,
&   System.double DMiterGap,
&   CustomBendAllowance^ PCBA,
&   System.bool UseDefaultRelief,
&   System.int ReliefType,
&   System.int ReliefTearTypes,
&   System.bool UseReliefRatio,
&   System.double ReliefRatio,
&   System.double ReliefWidth,
&   System.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) 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.