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();

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.
GeometricConstraint.addHorizontal Demonstrates the GeometricConstraint.addHorizontal method.
GeometricConstraint.addHorizontalPoints Demonstrates the GeometricConstraint.addHorizontalPoints method.
GeometricConstraint.addMidPont Demonstrate the GeometricConstraint.addMidPont method.
GeometricConstraints.addCoincident Demonstrates the GeometricConstraints.addCoincident method.
GeometricConstraints.addCollinear Demonstrates the GeometricConstraints.addCollinear method.
GeometricConstraints.addConcentric Demonstrates the GeometricConstraints.addConcentric method.
GeometricConstraints.addEqual Demonstrates the GeometricConstraints.addEqual method.
GeometricConstraints.addParallel Demonstrate the GeometricConstraints.addParallel method.
GeometricConstraints.addPerpendicular Demonstrates the GeometricConstraints.addPerpendicular method.
GeometricConstraints.addSmooth Demonstrate the GeometricConstraints.addSmooth method.
GeometricConstraints.addSymmetry Demonstrates the GeometricConstraints.addSymmetry method.
GeometricConstraints.addTangent Demonstrates the GeometricConstraints.addTangent method.
GeometricConstraints.addVertical Demonstrates the GeometricConstraints.addVertical method.
SketchCircles.addByTwoTangents Demonstrates the SketchCircles.addByTwoTangets method.

Version

Introduced in version August 2014