All Frameworks  Object Hierarchy  This Framework  Previous  Next  Indexes  

Intersect (Object)

IUnknown
  |
  +---IDispatch
    |
    +---CATBaseUnknown
      |
      +---CATBaseDispatch
        |
        +---AnyObject
          |
          +---Shape
            |
            +---BooleanShape
              |
              +---Intersect
 


Represents the intersect boolean operation.
It is performed between a body and the current shape.

Example

The following example shows how to create a new shape by intersecting two existing pads Pad1 and Pad2, created in two different bodies Body1 and Body2 respectively, using the existing shape factory named shapeFactory.

 ' Make Pad1 the current shape
 CATIA.ActiveDocument.Part.CurrentShape = Pad1
 ' 
 ' Create the intersection between Pad1 and Body2 
 Set NewShape      = shapeFactory.AddNewIntersect(Body2)
 


Copyright © 2003, Dassault Systèmes. All rights reserved.