ConstructionPointInput.setBySnapPoint 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 at the supplied snap point.

A snap point captures the same information that the user supplies in the UI when they hover over an entity and pick a snap location: the host entity, an optional reference entity, the picked 3D point in world space, and a ConstructionSnapPointTypes value that classifies the selection. This input method exposes snap-point selections (such as edge midpoints, arc centers, face centers and tangent points on curved faces) that previously were only available through the UI.

This can result in a parametric or non-parametric construction point depending on whether the parent component is parametric or is a direct edit component.

Syntax

"constructionPointInput_var" is a variable referencing a ConstructionPointInput object.

returnValue = constructionPointInput_var.setBySnapPoint(snapPoint)
"constructionPointInput_var" is a variable referencing a ConstructionPointInput object.

#include <Fusion/Construction/ConstructionPointInput.h>

returnValue = constructionPointInput_var->setBySnapPoint(snapPoint);
"constructionPointInput_var" is a variable referencing a ConstructionPointInput object.

returnValue = constructionPointInput_var.setBySnapPoint(snapPoint);

Return Value

Type Description
boolean Returns true if the creation of the ConstructionPointInput is successful.

Parameters

Name Type Description
snapPoint ConstructionSnapPoint The ConstructionSnapPoint defining the location of the construction point. Use ConstructionSnapPoint.create to build it.

Version

Introduced in version September 2026