Component.sketches Property

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

Description

Returns the sketches collection associated with this component. This provides access to the existing sketches and supports the creation of new sketches.

Syntax

"component_var" is a variable referencing a Component object.

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

// Get the value of the property.
Ptr<Sketches> propertyValue = component_var->sketches();

Property Value

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

Samples

Name Description
API Sample that demonstrates creating sketch lines in various ways. Demonstrates several ways to create sketch lines, including as the result of creating a rectangle.
Loft Feature API Sample Demonstrates creating a new loft feature.
Simple Extrusion Sample Creates a new extrusion feature, resulting in a new component.
Simple Revolve Feature Sample Creates a new revolve feature, resulting in a new component.
Sketches.add Demonstrates the Sketches.add method.
Sketches.addToBaseOrFormFeature Demonstrates the Sketches.addToBaseOrFormFeature method.

Version

Introduced in version August 2014