Hide Table of Contents
CheckInterferenceBetweenTwoBodies Method (IModeler)

Checks for interference between the specified bodies in an assembly.

.NET Syntax

Visual Basic (Declaration) 
Function CheckInterferenceBetweenTwoBodies( _
   ByVal Body1 As System.Object, _
   ByVal Body2 As System.Object, _
   ByVal CoincidentInterference As System.Boolean, _
   ByRef Body1InterferedFaceArray As System.Object, _
   ByRef Body2InterferedFaceArray As System.Object, _
   ByRef IntersectedBodyArray As System.Object _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As IModeler
Dim Body1 As System.Object
Dim Body2 As System.Object
Dim CoincidentInterference As System.Boolean
Dim Body1InterferedFaceArray As System.Object
Dim Body2InterferedFaceArray As System.Object
Dim IntersectedBodyArray As System.Object
Dim value As System.Boolean
 
value = instance.CheckInterferenceBetweenTwoBodies(Body1, Body2, CoincidentInterference, Body1InterferedFaceArray, Body2InterferedFaceArray, IntersectedBodyArray)
C# 
System.bool CheckInterferenceBetweenTwoBodies( 
   System.object Body1,
   System.object Body2,
   System.bool CoincidentInterference,
   out System.object Body1InterferedFaceArray,
   out System.object Body2InterferedFaceArray,
   out System.object IntersectedBodyArray
)
C++/CLI 
System.bool CheckInterferenceBetweenTwoBodies( 
&   System.Object^ Body1,
&   System.Object^ Body2,
&   System.bool CoincidentInterference,
&   [Out] System.Object^ Body1InterferedFaceArray,
&   [Out] System.Object^ Body2InterferedFaceArray,
&   [Out] System.Object^ IntersectedBodyArray
) 

Parameters

Body1
First body in interference detection (see Remarks)
Body2
Second body in interference detection (see Remarks)
CoincidentInterference
True to treat coincidence as interference, false to not
Body1InterferedFaceArray
Array of faces in the first body that interfered with the second body
Body2InterferedFaceArray
Array of faces in the second body that interfered with the first body
IntersectedBodyArray
Array of interfering bodies

Return Value

True if successful, false if not

Example

Remarks

Before calling this method, transform Body1 and Body2 to their proper positions in the coordinate space of the top-level assembly:

  1. Select the assembly components.
  2. Use IComponent2::Transform2 to get the transform of each component.
  3. Call IComponent2::GetBodies2 for each component.
  4. Use IBody2::ApplyTransform on each body using the transforms in step 2.
  5. Specify Body1 and Body1 with the bodies that have been transformed to their correct positions in the assembly.
 

See Also

Availability

SOLIDWORKS 2018 FCS, Revision Number 26.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:   CheckInterferenceBetweenTwoBodies 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) 2022 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.