Share

UnfoldFeatures.Add Method

Parent Object: UnfoldFeatures

Description

Method that creates a new unfold feature.

Remarks

For most models the Face specified in the StationaryFace parameter must be on the top or bottom of the part, not around the edge. The exception to this is a part where all of the faces on the top and bottom of the part are cylindrical, as shown below.

When using the Refold command in the user interface for parts like this, the user must specify one of the ends. The user interface displays what looks like work planes at each end of the part, as shown below, for the user to select. When using the API you must supply the equivalent Face objects at the end of the part.

Syntax

UnfoldFeatures.Add( StationaryFace As Face, [Bends] As Variant, [Sketches] As Variant ) As UnfoldFeature

Parameters

Name Type Description
StationaryFace Face Input Face object that specifies the geometry that will remain fixed while other geometry unfolds. See Remarks.
Bends Variant Optional input ObjectCollection that defines the bend(s) to unfold. The bends specified must be in a folded state (IsFlat equals False). Not providing this argument or inputting Nothing indicates that all flat bends are to be unfolded.

This is an optional argument whose default value is null.
Sketches Variant Optional input ObjectCollection that specifies any sketches to be copied and transformed as part of the unfolding operation. The input sketches must be a child of one of the faces being unfolded. Also only one sketch per unfolded face is allowed.

This is an optional argument whose default value is null.

Version

Introduced in version 2010

Was this information helpful?