All Frameworks  Object Hierarchy  This Framework  Indexes   

Body (Object)

The object that manages a sequence of shapes, a set of sketches, a set of hybrid bodies, a set of ordered geometrical sets and a set of hybrid shapes.

It belongs to the Bodies collection of a Part or HybridBody object.

Property Index

HybridBodies
Returns the body's HybridBodies collection.
HybridShapes
Returns the list of hybrid shapes included in the body.
InBooleanOperation
Returns True if the body is involved in a boolean operation, else returns False.
OrderedGeometricalSets
Returns the body's OrderedGeometricalSets collection.
Shapes
Returns the body's Shapes collection.
Sketches
Returns the body's Sketches collection.

Method Index

InsertHybridShape
Insert a hybrid shape to the body.

Properties


o Property HybridBodies() As (Read Only)
Returns the body's HybridBodies collection.
Example:
The following example returns in hybridBodyColl the collection of hybrid bodies of the main body of partDoc part document:
 Dim body As Body
 Set body = partDoc.Part.Bodies.MainBody
 Set hybridBodyColl = body.HybridBodies
o Property HybridShapes() As (Read Only)
Returns the list of hybrid shapes included in the body.
Returns:
oHybridShapes The list of hybrid shapes in the body (@see CATIAHybridShapes
for more information).
Example:
The following example returns in HybridShapes1 the list of
hybrid shapes in the body Body1:
 Dim HybridShapes1 As HybridShapes
 Set HybridShapes1 = Body1.HybridShapes
 
o Property InBooleanOperation() As (Read Only)
Returns True if the body is involved in a boolean operation, else returns False.
Example:
The following example returns in operated True if the body body1belongs to a boolean operation.
 operated = body1.InBooleanOperation
o Property OrderedGeometricalSets() As (Read Only)
Returns the body's OrderedGeometricalSets collection.
ometricalSetColl = Body1.OrderedGeometricalSets Example:
The following example returns in OrderedGeometricalSetColl the collection of ordered geometrical set of the body Body1 :
 Set OrderedGe
 
o Property Shapes() As (Read Only)
Returns the body's Shapes collection. These shapes make up the sequence of shapes that will produce an intermediate result for the part, or the final result in the case of the main body.
Example:
The following example returns in shapColl the collection of shapes managed by the main body of the partDoc part document:
 Dim body As Body
 Set body = partDoc.Part.Bodies.MainBody
 Set shapColl = body.Shapes
o Property Sketches() As (Read Only)
Returns the body's Sketches collection. These sketches are those inside the body at all levels.
Example:
The following example returns in skColl the collection of sketches of the main body of partDoc part document:
 Dim body As Body
 Set body = partDoc.Part.Bodies.MainBody
 Set skColl = body.Sketches

Methods


o Sub InsertHybridShape( iHybridShape)
Insert a hybrid shape to the body.
Parameters:
iHybriShape
The hybrid shape to insert.
Example:
This example inserts the hybrid shape HybridShape1 to the body Body1:
 Body1.InsertHybridShape (HybridShape1)
 

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