Hide Table of Contents

Create Multiple-Radius Fillets Example (VB.NET)

This example shows how to create multiple-radius fillets.

'--------------------------------------------------------------------------
' Preconditions:
' 1. Open public_documents\samples\tutorial\api\box.sldprt.
' 2. Select three intersecting edges on the inside of the part.
'
' Postconditions:
' 1. Fillets the three selected edges using three
'    different radii.
' 2. Examine the graphics area and FeatureManager design tree.
'
' Note: Because the model is used elsewhere, do not save changes.
'---------------------------------------------------------------------------
Imports SolidWorks.Interop.sldworks
Imports SolidWorks.Interop.swconst
Imports System.Runtime.InteropServices
Imports System

Partial Class SolidWorksMacro

    
Dim swModel As ModelDoc2
    
Dim swModelDocExt As ModelDocExtension
    
Dim swFeatMgr As FeatureManager
    
Dim VarRadArray8 As Object
    Dim radArray8(2) As Double
    Dim FilletOptions As Long

    Sub main()

        swModel = swApp.ActiveDoc
        swModelDocExt = swModel.Extension
        swFeatMgr = swModel.FeatureManager

        
'Multiple Radii
        radArray8(0) = 0.01
        radArray8(1) = 0.015
        radArray8(2) = 0.02
        VarRadArray8 = radArray8

        
'Fillet options
        FilletOptions = swFeatureFilletOptions_e.swFeatureFilletPropagate + swFeatureFilletOptions_e.swFeatureFilletAttachEdges + swFeatureFilletOptions_e.swFeatureFilletKeepFeatures

        
'Create multiple-radius fillets along selected edges
        swFeatMgr.FeatureFillet(FilletOptions, 0.01, swFeatureFilletType_e.swFeatureFilletType_Simple, swFilletOverFlowType_e.swFilletOverFlowType_Default, (VarRadArray8), 0, 0)

    
End Sub

  
    
Public swApp As SldWorks


End Class

 

 



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:   Create Multiple-Radius Fillets Example (VB.NET)
*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) 2021 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.