Component.features Property

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

Description

Returns the collection that provides access to all of the features associated with this component.

Syntax

"component_var" is a variable referencing a Component object.
# Get the value of the property.
propertyValue = component_var.features
"component_var" Is a variable referencing a Component Object.
#include <Fusion/Components/Component.h>

// Get the value of the property.
Ptr<Features> propertyValue = component_var->features();
"component_var" Is a variable referencing a Component Object.
// Get the value of the property.
propertyValue = component_var.features;

Property Value

This is a read only property whose value is a Features.

Samples

Name Description
baseFeatures.add Demonstrates the baseFeature.add method.
extrudeFeatures.add using setSymmetricExtent Demonstrates the extrudeFeatures.add method using the setSymmetricExtent method. To use this sample have a design open that contains a sketch with a profile. When you run the script you will be prompted to select the profile that will be used to create the extrusion.
extrudeFeatures.add using ThroughAllExtent Demonstrates the extrudeFeatures.add method using the ThroughAllExtent method.
formFeatures.add Demonstrates the formFeatures.add method. This creates a new empty form (T-Spline) feature, which you'll see in the timeline.
Loft Feature API Sample

Demonstrates creating a new loft feature.

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

moveFeatures.add Demonstrates the moveFeatures.add method.
Simple Extrusion Sample

Demonstrates creates a new extrusion feature, resulting in a new component.

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

Simple Revolve Feature Sample

Demonstrates creates a new revolve feature, resulting in a new component.

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