Hide Table of Contents
InsertBendNotes Method (IPartDoc)

Inserts bend notes for the specified flat-pattern feature of this sheet metal part.

.NET Syntax

Visual Basic (Declaration) 
Function InsertBendNotes( _
   ByVal FlatPatternFeature As System.Object _
) As System.Object
Visual Basic (Usage) 
Dim instance As IPartDoc
Dim FlatPatternFeature As System.Object
Dim value As System.Object
 
value = instance.InsertBendNotes(FlatPatternFeature)
C# 
System.object InsertBendNotes( 
   System.object FlatPatternFeature
)
C++/CLI 
System.Object^ InsertBendNotes( 
&   System.Object^ FlatPatternFeature
) 

Parameters

FlatPatternFeature
IFeature

Return Value

Array of INotes

Example

'VBA

' 1. Open a sheet metal part with a Flat-Pattern1 feature.
' 2. Run the macro.
' 3. Inspect the Immediate window for the list of inserted bend notes.

Dim swApp As SldWorks.SldWorks
Dim Part As SldWorks.ModelDoc2
Dim myFlatPattern As SldWorks.Feature
Dim myBendNotes As Variant
Dim myAnno As SldWorks.Note
Dim boolstatus As Boolean
Dim i As Long
Option Explicit

Sub main()

    Set swApp = Application.SldWorks
    Set Part = swApp.ActiveDoc
    boolstatus = Part.Extension.SelectByID2("Flat-Pattern1", "BODYFEATURE", 0, 0, 0, False, 0, Nothing, 0)
   
    Set myFlatPattern = Part.SelectionManager.GetSelectedObject6(1, -1)
    If Not myFlatPattern Is Nothing Then
        myBendNotes = Part.InsertBendNotes(myFlatPattern)
        For i = 0 To UBound(myBendNotes)
            Set myAnno = myBendNotes(i)
            Debug.Print myAnno.GetName
        Next i
    End If

End Sub

 

 

See Also

Availability

SOLIDWORKS 2019 FCS, Revision Number 27.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:   InsertBendNotes Method (IPartDoc)
*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) 2024 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.