HoleFeatureInput.setDistanceExtent Method

Parent Object: HoleFeatureInput
Defined 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);
"holeFeatureInput_var" is a variable referencing a HoleFeatureInput object.

returnValue = holeFeatureInput_var.setDistanceExtent(distance);

Return Value

Type Description
boolean Returns true if setting the extent was successful.

Parameters

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

Name Description
Hole Feature API Sample

Demonstrates creating a new hole feature.

Before running: No open document is required; the script creates a new design (or additional documents) as it runs.

Version

Introduced in version August 2014