Hide Table of Contents
CreateTrimmedSheet5 Method (ISurface)

Creates a trimmed sheet body from this surface.

.NET Syntax

Visual Basic (Declaration) 
Function CreateTrimmedSheet5( _
   ByVal Curves As System.Object, _
   ByVal PreserveAnalyticCurves As System.Boolean, _
   ByVal Tolerance As System.Double _
) As System.Object
Visual Basic (Usage) 
Dim instance As ISurface
Dim Curves As System.Object
Dim PreserveAnalyticCurves As System.Boolean
Dim Tolerance As System.Double
Dim value As System.Object
 
value = instance.CreateTrimmedSheet5(Curves, PreserveAnalyticCurves, Tolerance)
C# 
System.object CreateTrimmedSheet5( 
   System.object Curves,
   System.bool PreserveAnalyticCurves,
   System.double Tolerance
)
C++/CLI 
System.Object^ CreateTrimmedSheet5( 
&   System.Object^ Curves,
&   System.bool PreserveAnalyticCurves,
&   System.double Tolerance
) 

Parameters

Curves

Array of curves that represent the boundary of the trimmed sheet (see Remarks)

PreserveAnalyticCurves

True to preserve analytic curves, false to store all trimming curves as SP-curves

Tolerance
Tolerance for gaps between edges (see Remarks)

Return Value

Temporary sheet body

Example

'VBA

'===========================================
'Preconditions:
'1. Open a new part.
'2. Run the macro to the Stop.
'3. Press F5 to create the imported feature.
'
'Postconditions:
'1. Creates a temporary body and displays it.
'2. Uses the temporary body to create Surface-Imported1
'   in the FeatureManager design tree.
'===========================================

Const RADIUS As Double = 0.01

Dim swApp As SldWorks.SldWorks
Dim swPart As SldWorks.PartDoc
Dim swSurf As SldWorks.Surface
Dim swBody As SldWorks.Body2
Dim swFeat As SldWorks.Feature
Dim swModeler As SldWorks.Modeler

Option Explicit

Sub main()

    Set swApp = Application.SldWorks
    Set swPart = swApp.ActiveDoc
   
    Set swModeler = swApp.GetModeler
   
    Dim dCenter(2) As Double
    dCenter(0) = 0: dCenter(1) = 0: dCenter(2) = 0
   
    Dim dAxis(2) As Double
    dAxis(0) = 0: dAxis(1) = 0: dAxis(2) = 1
   
    Dim dRef(2) As Double
    dRef(0) = 1: dRef(1) = 0: dRef(2) = 0
   
    Set swSurf = swModeler.CreateSphericalSurface2(dCenter, dAxis, dRef, RADIUS)

    ' No trimming curves are required, so pass one Nothing in the Curves parameter array
    ' of ISurface::CreateTrimmedSheet5
    Dim ZeroTrimmingCurves(0 To 0) As SldWorks.Curve
    Set ZeroTrimmingCurves(0) = Nothing
    Set swBody = swSurf.CreateTrimmedSheet5(ZeroTrimmingCurves, True, 0.00001)
   
    swBody.Display3 swPart, RGB(255, 255, 0), swTempBodySelectOptions_e.swTempBodySelectable
   
    Stop
   
    Set swFeat = swPart.CreateFeatureFromBody3(swBody, False, swCreateFeatureBodyOpts_e.swCreateFeatureBodyCheck + swCreateFeatureBodyOpts_e.swCreateFeatureBodySimplify)
   
End Sub

Remarks

The Curves array contains all of the curves required to add the appropriate trimming loops to the surface. A null or Nothing entry in the array represents the separation between loops.

The trimming curves supplied are assumed to lie on the surface. If the curves are 2D curves, then they should be created using this surface.

If your application is creating a trimmed sheet body from a periodic surface without trimming curves, then the Curves array should contain only one entry: null or Nothing.

Tolerance sets the edge precision in PK_SURF_make_sheet_trimmed. The default parasolid tolerance is 0.00001. This parameter allows you to specify a looser tolerance for gaps between edges.

Before calling this method, trim the curves created by IModeler::CreateArc and IModeler::CreateLine by calling ICurve::CreateTrimmedCurve2. Elliptical curves created by IModeler::CreateEllipse do not need to be trimmed before calling this method.

 

See Also

Availability

SOLIDWORKS 2017 SP4, Revision Number 25.4


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:   CreateTrimmedSheet5 Method (ISurface)
*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) 2025 SP2

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.