FlangeFeatures.CreateFlangeDefinition Method

Parent Object: FlangeFeatures

Description

Method that creates a new FlangeDefinition object. The object created does not represent a flange feature but instead is a representation of the information that defines a flange feature. You can use this object as input to the FlangeFeatures.Add method to create the actual flange feature.

Syntax

FlangeFeatures.CreateFlangeDefinition( Edges As EdgeCollection, FlangeAngle As Variant, Distance As Variant ) As FlangeDefinition

Parameters

Name Type Description
Edges EdgeCollection Input EdgeCollection that specifies the edges to create a flange feature on. If the all of the edges of a Face are desired, it is up to you to obtain them from the Face and and add them to the collection.
FlangeAngle Variant Input Variant that defines the angle of the flange. This can be either a numeric value or a string. A parameter for this value will be created and the supplied string or value is assigned to the parameter. If a value is input, the units are radians. If a string is input, the units can be specified as part of the string or it will default to the current angle units of the document.
Distance Variant Input Variant that defines the distance used for the height extent of the flange. When the FlangeDefinition object is created it defaults to a distance height extent. This value is used to define that distance. If you want to define the height using a 'to' extent instead you can edit the definition and change it, but to initially create the definition you must still supply an value for the distance.

This can be either a numeric value or a string. A parameter for this value will be created and the supplied string or value is assigned to the parameter. If a value is input, the units are centimeters. If a string is input, the units can be specified as part of the string or it will default to the current length units of the document.

Remarks

The FlangeDefinition object returned is fully defined and can be used to create a flange feature. However, defaults are used for most of the flange options so you may want to change some of the property values of the FlangeDefinition object before using it to create a flange feature.

Samples

Name Description
Creating flange features Demonstrates creating flange features of various width extents. This creates a new document, creates a face feature and adds a flange feature on four edges.
Create sheet metal face and flange features This sample demonstrates the creation of sheet metal face and flange features.

Version

Introduced in version 2011