GeometricConstraints.addMidPoint Method

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

Description

Creates a new midpoint constraint between a point and a curve.

Syntax

"geometricConstraints_var" is a variable referencing a GeometricConstraints object.
returnValue = geometricConstraints_var.addMidPoint(point, midPointCurve)
"geometricConstraints_var" is a variable referencing a GeometricConstraints object.

#include <Fusion/Sketch/GeometricConstraints.h>

returnValue = geometricConstraints_var->addMidPoint(point, midPointCurve);

Return Value

Type Description
MidPointConstraint Returns the newly created MidPointConstraint object or null if the creation failed.

Parameters

Name Type Description
point SketchPoint The point to constrain to the midpoint of a curve.
midPointCurve SketchCurve The curve that defines the midpoint to constraint to.

Samples

Name Description
GeometricConstraint.addMidPont Demonstrate the GeometricConstraint.addMidPont method.

Version

Introduced in version August 2014