Share

HoleFeatures.AddDrilledByThroughAllExtent Method

Parent Object: HoleFeatures

Description

Method that creates a new drilled HoleFeature using 'through all' extents. The new HoleFeature is returned.

Syntax

HoleFeatures.AddDrilledByThroughAllExtent( PlacementDefinition As Object, DiameterOrTapInfo As Variant, ExtentDirection As PartFeatureExtentDirectionEnum ) As HoleFeature

Parameters

Name Type Description
PlacementDefinition Object Object that defines the centerpoint(s) of the hole feature. This object can be one of the following four objects that derive from the HolePlacementDefinition object: SketchHolePlacementDefinition, LinearHolePlacementDefinition, ConcentricHolePlacementDefinition, PointHolePlacementDefinition. These objects can be created using methods provided on this HoleFeatures object. This argument also supports an ObjectCollection of SketchPoints for compatibility with the older version of this method.
DiameterOrTapInfo Variant Defines either the diameter of the hole or the tap information (using a HoleTapInfo or a TaperedThreadInfo object). In the case of a tapped hole, the tap information defines the diameter of the hole. When the diameter is supplied, 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 toward. Valid input is kPositive or kNegative. kPositive defines the offset direction to be in the same direction as the normal of the sketch plane.

Samples

Name Description
Hole Feature - Through holes (RegularAndTapped) This sample demonstrates the creation of through holes, both regular and tapped.
Hole feature linear placement This sample demonstrates the creation of a hole feature using the linear placement type.

Version

Introduced in version 5

Was this information helpful?