Path.create Method

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

Description

Creates a new Path that can be used as input to various features. For example, it is used to create an open set of curves to create surfaces using extrude, revolve, and sweep. It is also used to create the path for a sweep and sections and profiles and rails for lofts. And it is used to define the boundary of a patch feature.

Although the creation of a path is very flexible as far as the types of entities and whether they are planar or not, each of the features have specific requirements and the path must meet those requirements. For example, a path for an extrusion can only contain sketch curves and must be planar, whereas the path for a sweep can contain a mix of sketch curves and edges and can be in three dimensions.

Syntax

This is a static method.

returnValue = adsk.fusion.Path.create(curves, chainOptions)
This is a static method.

#include <Fusion/Features/Path.h>

returnValue = adsk::fusion::Path::create(curves, chainOptions);

Return Value

Type Description
Path Returns the new Path object or null in the case of a failure.

Parameters

Name Type Description
curves Base A SketchCurve, BRepEdge, or an ObjectCollection containing multiple sketch entities and/or BRepEdges. If a single sketch curve or BRepEdge is input the chainCurves argument is used to determine if connected curves or edges (they do not need to be tangent) should be automatically found. Searching for connected curves is only performed within the same sketch or open edges on the same body. If multiple curves are provided the chainCurves argument is treated as false so only the specified input curves are used. The input curves need to geometrically connect for a path to be created.
chainOptions ChainedCurveOptions If a single SketchCurve or BRepEdge is input, this argument is used to specify the rules in how chained entities should be found. If an ObjectCollection is input, this argument is ignored.

Samples

Name Description
pathPatternFeatures.add Demonstrates the pathPatternFeatures.add method using a selected body and sketch curve as the path.

Version

Introduced in version July 2016