ExtrudeFeatures.CreateExtrudeDefinition Method
Parent Object:
ExtrudeFeatures
Description
Method that creates a new ExtrudeDefinition object. The object created does not represent an extrude feature but instead is a representation of the information that defines an extrude feature. You can use this object as input to the ExtrudeFeatures.Add method to create the actual feature.
Remarks
The ExtrudeDefinition object returned is fully defined and can be used to create an extrude feature. However, defaults are used for extrude options (including a distance extent type with a value of “1.0 in”), so you may want to change some of the property values of the ExtrudeDefinition object before using it to create a feature.
Syntax
ExtrudeFeatures.
CreateExtrudeDefinition(
Profile As
Profile,
Operation As
PartFeatureOperationEnum ) As
ExtrudeDefinition
Parameters
Profile |
Profile |
Input Profile object that specifies the sketch profile to use for the extrude feature. |
Operation |
PartFeatureOperationEnum |
Input that specifies the type of operation used to add the feature to the model. Valid inputs are kNewBodyOperation, kJoinOperation, kCutOperation, kIntersectOperation and kSurfaceOperation. |
Samples
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. |
Add a decal feature |
This sample demonstrates the creation of a decal feature. |
Derived Parts and Assemblies |
This sample demonstrates the use of the API to create derived parts and assemblies. |
Using Inventor's error dialog |
Demonstrates using Inventor's error dialog. |
Extrude Feature - Create Block with Pocket |
This sample demonstrates creating a simple solid consisting a block with a pocket. It shows how to create a sketch plane at a specified orientation to existing geometry. |
Edit profile of an extrude feature |
This sample demonstrates editing the profile of an extrude feature. |
Extrude sketch text |
This sample demonstrates the creation of an extrude feature from sketch text. |
Add iMate Definition |
Add iMate definitions using AddMateiMateDefinition and AddInsertiMateDefinition. |
Create and Edit an Extrude Feature with a pocket |
This sample demonstrates how to edit an extrude feature. It shows how to create a sketch plane at a specified orientation to existing geometry. |
Sketch from Face Silhouette |
This sample creates a cylindrical solid, creates a new sketch plane and creates some new sketch lines from the actual edges and the apparent (silhouette) edges of the cylinder. |
Sketch profile control |
This sample demonstrates the usage of the Profiles API to control the shape of the profile. The sample creates three concntric circles and creates an extrusion of the region between the inner circles. |
Create sheet metal rip feature |
This sample demonstrates the creation of a rip sheet metal feature. |
Thread Feature Create |
This sample demonstrates the creation of a thread feature. It creates a cylinder in a new part document and creates a thread feature on the cylinder. |
Version
Introduced in version 2012