Share

NonParametricBaseFeatures.AddByDefinition Method

Parent Object: NonParametricBaseFeatures

Description

Method that creates a new NonParametricBaseFeature object.

Remarks

This method is very similar to the Copy Object command. A difference is that the use of this method will only ever result in the creation of a single NonParametricBaseFeature object whereas in some case the Copy Object command will create multiple base features. If you need to reproduce these cases using the API you'll need to call this method multiple times, once for each required base feature.

Syntax

NonParametricBaseFeatures.AddByDefinition( Definition As NonParametricBaseFeatureDefinition ) As NonParametricBaseFeature

Parameters

Name Type Description
Definition NonParametricBaseFeatureDefinition Input NonParametricBaseFeatureDefinition object that defines all of the input required to create a non-parametric base feature. A NonParametricBaseFeatureDefinition object is created using the CreateDefinition method of the NonParametricBaseFeatures collection object.

Samples

Name Description
Body Imprinting and matching the results This sample is intended to demonstrate a technique of finding the matching surfaces between the original input bodies and output imprinted bodies. This relies on transient keys, which is a unique ID associated with each B-Rep entity. A transient key is only good as long as the model is not recomputed.
Associative body copy The following sample demonstrates copying bodies (associatively and non-associatively) across parts in an assembly.
Transient surface body creation The following sample demonstrates the creation of a transient surface body consisting of a single rectangular face. The body is created in transient space and then copied over to a part document as a base feature.

Version

Introduced in version 2011

Was this information helpful?