HoleFeatureInput.setDistanceExtent Method
Parent Object:
HoleFeatureInputDefined in namespace "adsk::fusion" and the header file is <Fusion/Features/HoleFeatureInput.h>
Description
Defines the depth of the hole using a specified distance.
Syntax
"holeFeatureInput_var" is a variable referencing a HoleFeatureInput object.returnValue = holeFeatureInput_var.setDistanceExtent(distance)
|
"holeFeatureInput_var" is a variable referencing a HoleFeatureInput object.
#include <Fusion/Features/HoleFeatureInput.h>
returnValue = holeFeatureInput_var->setDistanceExtent(distance);
|
Return Value
boolean |
Returns true if setting the extent was successful. |
Parameters
distance |
ValueInput |
The depth of the hole. If a real is specified the value is in centimeters. If a string is specified the units are derived from the string. If no units are specified, the default units of the document are used. |
Samples
holeFeatures.add |
Demonstrates the holeFeatures.add method using the createSimpleInput method. To use this sample, have a design open with a box. Select the face for the hole and two edges to define the position of the hole. |
Hole Feature API Sample |
Demonstrates creating a new hole feature. |
holeFeatures.add with Counterbore |
Demonstrates the holeFeatures.add method using the createCounterboreInput method. The hole is positioned at the center of the selected edge. |
holeFeatures.add with Countersink |
Demonstrates the holeFeatures.add method using the createCountersinkInput method and postions the hole in the center of a selected circular edge. |
Version
Introduced in version August 2014