Hide Table of Contents
GetIntersectionEdges2 Method (IBody2)

Gets the edges resulting from the intersection of the specified tool body and this body.

.NET Syntax

Visual Basic (Declaration) 
Function GetIntersectionEdges2( _
   ByVal ToolBodyIn As System.Object, _
   ByVal AddFaceIds As System.Boolean _
) As System.Object
Visual Basic (Usage) 
Dim instance As IBody2
Dim ToolBodyIn As System.Object
Dim AddFaceIds As System.Boolean
Dim value As System.Object
 
value = instance.GetIntersectionEdges2(ToolBodyIn, AddFaceIds)
C# 
System.object GetIntersectionEdges2( 
   System.object ToolBodyIn,
   System.bool AddFaceIds
)
C++/CLI 
System.Object^ GetIntersectionEdges2( 
&   System.Object^ ToolBodyIn,
&   System.bool AddFaceIds
) 

Parameters

ToolBodyIn
Temporary tool body used to perform the intersection with this body (see Remarks)
AddFaceIds
True to create IDs for any new faces, false to not (see Remarks)

Return Value

Array of edges

Remarks

This method imprints a set of edges on both of the bodies and returns the edges in an unordered list as shown below. The total number of edges in the returned array is twice the value returned by IBody2::IGetIntersectionEdgeCount.

[ Edge1imprintedOnTarget, Edge1imprintedOnTool, Edge2imprintedOnTarget, Edge2imprintedOnTool ]

where Target is this IBody2 object, and Tool is the IBody2 object passed into this method as ToolBodyIn.

If the two bodies are in an assembly, then this method generates a list of the intersection edges between the two bodies. Before calling this method, the two bodies must be aligned. To align the two bodies, calculate the transformation from the first body to the second body and then apply the transform to the second body using IBody2::ApplyTransform.

In the case of a tangency condition (for example, a planar face contacting the cylindrical face of a cylinder), this method returns a single edge along the tangency.

You might also find that IBody2::Operations2 provides an adequate solution when intersecting a sheet body with a target body.

AddFaceIds allows you to add IDs to any newly created faces. This may be useful if ToolBodyIn later becomes a permanent body, which can occur in macro features.

 

See Also

Availability

SOLIDWORKS 2020 FCS, Revision Number 28.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:   GetIntersectionEdges2 Method (IBody2)
*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.