Sketch.geometricConstraints Property

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

Description

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

Syntax

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

// Get the value of the property.
Ptr<GeometricConstraints> propertyValue = sketch_var->geometricConstraints();
"sketch_var" Is a variable referencing a Sketch Object.
// Get the value of the property.
propertyValue = sketch_var.geometricConstraints;

Property Value

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

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.

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

Creates an I-Bream on a User Coordinate System

Demonstrates the use of an existing user coordinate system to create geometry dependent on it.

Before running: Run from Scripts and Add-Ins. This sample may open dialogs or require interactive choices; keep Fusion in the foreground.

Version

Introduced in version August 2014