SurfaceBodies.Item Property

Parent Object: SurfaceBodies

Description

Allows integer-indexed access to items in the collection.

Syntax

SurfaceBodies.Item( Index As Long ) As SurfaceBody

Property Value

This is a read only property whose value is a SurfaceBody.

Parameters

Name Type Description
Index Long Input Long value that specifies the index of the SurfaceBody to return.

Samples

Name Description
Delete Face, Boundary Patch and Stitch features Demonstrates creating Face, Boundary Patch and Stitch features.
SurfaceBody Copy This sample demonstrates copying a surface body from one part to another. This is equivalent to the Promote command, but the API is much more flexible. In order for the sample to be self-contained, it creates two parts on the fly that will be used to demonstrate copying a body from one part to another. When copying a body into a part, you provide the surface body and a matrix to define its position in the new part. This sample creates a matrix based on the position of these parts within an assembly.
Associative body copy The following sample demonstrates copying bodies (associatively and non-associatively) across parts in an assembly.
Sketch Add This sample demonstrates the creation of a sketch using the Sketches.Add method.
Sketch Add Oriented This sample demonstrates the creation of a sketch using the Sketches.AddWithOrientation method.

Version

Introduced in version 4