Share

NonParametricBaseFeatures.Add Method

Parent Object: NonParametricBaseFeatures

Description

Method that adds a NonParametricBaseFeature to the collection.

Syntax

NonParametricBaseFeatures.Add( SurfaceBody As SurfaceBody, [Transform] As Variant ) As NonParametricBaseFeature

Parameters

Name Type Description
SurfaceBody SurfaceBody Input SurfaceBody to create the new NonParametricBaseFeature in the collection.
Transform Variant Optional input Variant that specifies the transformation for the new NonParametricBaseFeature in the collection.

This is an optional argument whose default value is null.

Samples

Name Description
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.
Imprint bodies within an assembly. This sample demonstrates creating imprinted bodies from two selected occurrences in an assembly.
Create primitive BRep This sample demonstrates the creation of primitive (solid) BRep.
Transient B-Rep Ruled Surface with Lines Demonstrate creating a transient ruled surface. This sample uses all straight line segments for each of the sections. A part document must be open.
Transient B-Rep Ruled Surface with Arc and Line Demonstrate creating a transient ruled surface. This sample uses straight line segments for once section and an arc for the second. A part document must be open.

Version

Introduced in version 6

Was this information helpful?