Sketch.offset Method

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

Description

Creates offset curves for the set of input curves. If the offset distance is not provided, the offset distance is defined by the direction point.

Syntax

"sketch_var" is a variable referencing a Sketch object.
# Uses no optional arguments.
returnValue = sketch_var.offset(curves, directionPoint)

# Uses optional arguments.
returnValue = sketch_var.offset(curves, directionPoint, offset)
"sketch_var" is a variable referencing a Sketch object.

#include <Fusion/Sketch/Sketch.h>

// Uses no optional arguments.
returnValue = sketch_var->offset(curves, directionPoint);

// Uses optional arguments.
returnValue = sketch_var->offset(curves, directionPoint, offset);

Return Value

Type Description
ObjectCollection A collection of the new offset sketch curves created

Parameters

Name Type Description
curves ObjectCollection A set of end connected curves. The Sketch.FindConnectedCurves method is a convenient way to get this set of curves.
directionPoint Point3D Defines which side of the input curves to create the offset on
offset double The distance to offset the curves in centimeters.

This is an optional argument whose default value is 0.0.

Samples

Name Description
Sketch fillet and offset API Sample Demonstrates the creation of a fillet in a sketch and offset a set of curves.

Version

Introduced in version August 2014