ConstructionPointInput.setByPath Method

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

Description

This input method is for creating a construction point on the specified path. This can result in a parametric or non-parametric construction point, depending on whether the parent design is parametric or is a direct edit component, or if the construction point is created in a base feature in a parametric design.

Syntax

"constructionPointInput_var" is a variable referencing a ConstructionPointInput object.

returnValue = constructionPointInput_var.setByPath(path, distanceType, distance)
"constructionPointInput_var" is a variable referencing a ConstructionPointInput object.

#include <Fusion/Construction/ConstructionPointInput.h>

returnValue = constructionPointInput_var->setByPath(path, distanceType, distance);
"constructionPointInput_var" is a variable referencing a ConstructionPointInput object.

returnValue = constructionPointInput_var.setByPath(path, distanceType, distance);

Return Value

Type Description
boolean Returns true if calling this method is successful.

Parameters

Name Type Description
path Path Specifies the Path object the construction point will be created on. To create a Path from a single BRepEdge or SketchCurve, use the static Path.create method (e.g. Path.create(edge, ChainedCurveOptions.noChainedCurves)).
distanceType PathDistanceTypes Specifies PathDistanceTypes value indicating the measurement type for distance.
distance ValueInput Specifies the distance to determine the position on the specified path to place the new construction point.

If the distanceType is set to ProportionalPathDistanceType this should be a unitless number from 0 to 1 indicating the proportion of the path. Values outside [0, 1] will cause this method to return false. This can be a real value or an expression which can be evaluated as a unitless number.

If the distanceType is set to PhysicalPathDistanceType this will be interpreted as a centimeter value if it is set using a real, or if an expression is provided it must be able to be evaluated as a valid distance. Values exceeding the total path length are clamped to the endpoint.

Version

Introduced in version September 2026