GeometricConstraints.addPolygon Method
Parent Object:
GeometricConstraintsDefined in namespace "adsk::fusion" and the header file is <Fusion/Sketch/GeometricConstraints.h>
Description
Creates a polygon constraint on existing lines in the sketch.
Syntax
"geometricConstraints_var" is a variable referencing a GeometricConstraints object.returnValue = geometricConstraints_var.addPolygon(lines)
|
"geometricConstraints_var" is a variable referencing a GeometricConstraints object.
#include <Fusion/Sketch/GeometricConstraints.h>
returnValue = geometricConstraints_var->addPolygon(lines);
|
Return Value
PolygonConstraint |
Returns the created PolygonConstraint or null if the creation failed. |
Parameters
lines |
SketchLine[] |
An array of existing SketchLine objects in this sketch that define a valid polygon. They must be the same length, connect at their endpoints, have the same angle between them, and define a closed shape. The order of the lines within the array does not matter. |
Version
Introduced in version January 2025