Hide Table of Contents
CreateLoftBody2 Method (IModeler)

Creates a loft body using the specified profiles, guide curves, and centerline.

.NET Syntax

Visual Basic (Declaration) 
Function CreateLoftBody2( _
   ByVal PModDoc As ModelDoc2, _
   ByVal Profile As System.Object, _
   ByVal GuideCurve As System.Object, _
   ByVal Centerline As System.Object, _
   ByVal IsThinBody As System.Boolean, _
   ByVal ThinType As System.Integer, _
   ByVal Thickness1 As System.Double, _
   ByVal Thickness2 As System.Double, _
   ByVal FeatureScope As System.Boolean, _
   ByVal IsBlendClosed As System.Boolean, _
   ByVal KeepTangency As System.Boolean, _
   ByVal ForceNonRational As System.Boolean, _
   ByVal IsSolidBody As System.Boolean, _
   ByVal TessTolFactor As System.Double, _
   ByVal StartTangentLength As System.Double, _
   ByVal EndTangentLength As System.Double, _
   ByVal StartTangentDir As System.Boolean, _
   ByVal EndTangentDir As System.Boolean, _
   ByVal StartMatchingType As System.Integer, _
   ByVal EndMatchingType As System.Integer, _
   ByVal Merge As System.Boolean _
) As Body2
Visual Basic (Usage) 
Dim instance As IModeler
Dim PModDoc As ModelDoc2
Dim Profile As System.Object
Dim GuideCurve As System.Object
Dim Centerline As System.Object
Dim IsThinBody As System.Boolean
Dim ThinType As System.Integer
Dim Thickness1 As System.Double
Dim Thickness2 As System.Double
Dim FeatureScope As System.Boolean
Dim IsBlendClosed As System.Boolean
Dim KeepTangency As System.Boolean
Dim ForceNonRational As System.Boolean
Dim IsSolidBody As System.Boolean
Dim TessTolFactor As System.Double
Dim StartTangentLength As System.Double
Dim EndTangentLength As System.Double
Dim StartTangentDir As System.Boolean
Dim EndTangentDir As System.Boolean
Dim StartMatchingType As System.Integer
Dim EndMatchingType As System.Integer
Dim Merge As System.Boolean
Dim value As Body2
 
value = instance.CreateLoftBody2(PModDoc, Profile, GuideCurve, Centerline, IsThinBody, ThinType, Thickness1, Thickness2, FeatureScope, IsBlendClosed, KeepTangency, ForceNonRational, IsSolidBody, TessTolFactor, StartTangentLength, EndTangentLength, StartTangentDir, EndTangentDir, StartMatchingType, EndMatchingType, Merge)
C# 
Body2 CreateLoftBody2( 
   ModelDoc2 PModDoc,
   System.object Profile,
   System.object GuideCurve,
   System.object Centerline,
   System.bool IsThinBody,
   System.int ThinType,
   System.double Thickness1,
   System.double Thickness2,
   System.bool FeatureScope,
   System.bool IsBlendClosed,
   System.bool KeepTangency,
   System.bool ForceNonRational,
   System.bool IsSolidBody,
   System.double TessTolFactor,
   System.double StartTangentLength,
   System.double EndTangentLength,
   System.bool StartTangentDir,
   System.bool EndTangentDir,
   System.int StartMatchingType,
   System.int EndMatchingType,
   System.bool Merge
)
C++/CLI 
Body2^ CreateLoftBody2( 
&   ModelDoc2^ PModDoc,
&   System.Object^ Profile,
&   System.Object^ GuideCurve,
&   System.Object^ Centerline,
&   System.bool IsThinBody,
&   System.int ThinType,
&   System.double Thickness1,
&   System.double Thickness2,
&   System.bool FeatureScope,
&   System.bool IsBlendClosed,
&   System.bool KeepTangency,
&   System.bool ForceNonRational,
&   System.bool IsSolidBody,
&   System.double TessTolFactor,
&   System.double StartTangentLength,
&   System.double EndTangentLength,
&   System.bool StartTangentDir,
&   System.bool EndTangentDir,
&   System.int StartMatchingType,
&   System.int EndMatchingType,
&   System.bool Merge
) 

Parameters

PModDoc
Model document in which to create the loft body
Profile
Array of sketches representing the profiles of the loft body
GuideCurve
Array of sketches representing the guide curves of the loft body
Centerline
Sketch representing a centerline of the loft body
IsThinBody
True if the loft body is to be a thin body, false if not
ThinType
  • 0 = One direction

  • 1 = One direction reverse

  • 2 = Midplane

  • 3 = Two direction

Thickness1
Value for thickness for first direction if a thin body
Thickness2
Value for thickness for second direction if a thin body
FeatureScope

True if the loft body only affects selected bodies, false if the loft body affects all bodies

IsBlendClosed
True for a closed loft, false for an open loft; if true and you selected less that three profiles, then any selected guide curves must be closed curves
KeepTangency

If the section curves are tangent, then you have the option to specify whether the resulting faces are also tangent; specify true to maintain the tangency as seen in the section curves, false to not

NOTE: When generating tangent surfaces, SOLIDWORKS maintains planar and cylindrical surface shapes if the section curves exhibit these characteristics.

ForceNonRational
True to force the resulting surface to be non-rational, false to not
IsSolidBody
True to return a solid loft body, false to return a surface loft body
TessTolFactor
Factor to control the number of intermediate sections used for loft with centerline; default value is 1.0; the greater the variable, the more intermediate sections created
StartTangentLength
Start tangent length
EndTangentLength
End tangent length
StartTangentDir

True is one direction, false is the opposite direction

EndTangentDir

True is one direction, false is the opposite direction

StartMatchingType

Tangency type at the start profile:

  • 0 = none

  • 1 = tangent to the normal of the profile

  • 2 = tangent to the selected vector

  • 3 = tangent to all adjacent faces sharing an edge with the start profile

EndMatchingType

Tangency type as the end profile:

  • 0 = none

  • 1 = tangent to the normal of the profile

  • 2 = tangent to the selected vector

  • 3 = tangent to all adjacent faces sharing an edge with the start profile

Merge
True merges the results in a multibody part, false does not

Return Value

Loft body

Example

Remarks

Specifying guide curves and a centerline are optional. It is best to use guide curves, especially when you select profiles in the FeatureManager design tree.

You must specify the profiles in an order consistent with the desired direction of the loft. If creating a solid loft body, then the profiles must be closed. You can use any number of profiles. However, if you specify only one profile, then any specified guide curves must be closed curves.

Linear edge, sketch line, axis, plane and planar faces are qualified for tangency vector sections.

 

See Also

Availability

SOLIDWORKS 2010 FCS, Revision Number 18.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:   CreateLoftBody2 Method (IModeler)
*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) 2017 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.