Share

ExtrudeDefinition.SetDistanceExtent Method

Parent Object: ExtrudeDefinition

Description

Method that changes the extents to be “distance” extents. If this method is called on an asymmetric extrude, the second direction extent is removed. To change extent values, use the properties on the object returned by the Extent property.

Syntax

ExtrudeDefinition.SetDistanceExtent( Distance As Variant, ExtentDirection As PartFeatureExtentDirectionEnum )

Parameters

Name Type Description
Distance Variant Input Variant that defines the length of the extrusion. 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.
ExtentDirection PartFeatureExtentDirectionEnum Input constant that indicates which side of the sketch plane to extrude towards. Valid input is kPositiveExtentDirection, kNegativeExtentDirection, or kSymmetricExtentDirection. kPositiveExtentDirection defines the offset direction to be in the same direction as the normal of the sketch plane.

Samples

Name Description
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

Was this information helpful?