ExtrudeFeature.extentOne Property

Parent Object: ExtrudeFeature
Defined in namespace "adsk::fusion" and the header file is <Fusion/Features/ExtrudeFeature.h>

Description

Gets and sets the extent used for a single sided extrude or side one of a two-sided extrusion. Valid inputs are DistanceExtentDefinition, ToEntityExtentDefinition, and ThroughAllExtentDefinition object, which can be created statically using the create method on the classes.

To set this property, you need to position the timeline marker to immediately before this feature. This can be accomplished using the following code: thisFeature.timelineObject.rollTo(True)

Syntax

"extrudeFeature_var" is a variable referencing an ExtrudeFeature object.

# Get the value of the property.
propertyValue = extrudeFeature_var.extentOne

# Set the value of the property.
extrudeFeature_var.extentOne = propertyValue
"extrudeFeature_var" is a variable referencing an ExtrudeFeature object.
#include <Fusion/Features/ExtrudeFeature.h>

// Get the value of the property.
Ptr<ExtentDefinition> propertyValue = extrudeFeature_var->extentOne();

// Set the value of the property, where value_var is an ExtentDefinition.
bool returnValue = extrudeFeature_var->extentOne(value_var);

Property Value

This is a read/write property whose value is an ExtentDefinition.

Samples

Name Description
Extrude Feature API Sample Demonstrates creating a new extrude feature.

Version

Introduced in version November 2016