AutoConstrainInput.parentSketch Property

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

Description

Returns the Sketch this object is associated with and where the dimension and geometric constraints will be added when the autoConstrain method is called. This property is read-only and is set when the input object is created by the sketch's createAutoConstrainInput method.

Syntax

"autoConstrainInput_var" is a variable referencing an AutoConstrainInput object.
# Get the value of the property.
propertyValue = autoConstrainInput_var.parentSketch
"autoConstrainInput_var" Is a variable referencing an AutoConstrainInput Object.
#include <Fusion/Sketch/AutoConstrainInput.h>

// Get the value of the property.
Ptr<Sketch> propertyValue = autoConstrainInput_var->parentSketch();
"autoConstrainInput_var" Is a variable referencing an AutoConstrainInput Object.
// Get the value of the property.
propertyValue = autoConstrainInput_var.parentSketch;

Property Value

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

Version

Introduced in version January 2026