UserCoordinateSystemGeometry.createByCurve Method

Parent Object: UserCoordinateSystemGeometry

PreviewThis functionality is provided as a preview of intended future API capabilities. You are encouraged to use it and report any problems or suggestions using the Fusion API and Scripts forum.

Because this is a preview of future functionality, there is the possibility that it will change, which will possibly break any existing programs that use this functionality. Because of that, you should never deliver any programs that use any preview capabilities. For a distributed program, you should wait until it has moved from preview to released state.


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

Description

Creates a new transient UserCoordinateSystemGeometry object using a BRepEdge or SketchCurve as input. A UserCoordinateSystemGeometry object can be used to create a User Coordinate System.

Syntax

This is a static method.

returnValue = adsk.fusion.UserCoordinateSystemGeometry.createByCurve(curve, keyPointType)
This is a static method.

#include <Fusion/Construction/UserCoordinateSystemGeometry.h>

returnValue = adsk::fusion::UserCoordinateSystemGeometry::createByCurve(curve, keyPointType);

Return Value

Type Description
UserCoordinateSystemGeometry Returns the transient UserCoordinateSystemGeometry object that can be used to create a User Coordinate System or null in the case of a failure.

Parameters

Name Type Description
curve Base Input BRepEdge or SketchCurve.
keyPointType UserCoordinateSystemKeyPointTypes The position on the curve where to position the joint coordinate system. For any open curves the valid types are StartKeyPoint, MiddleKeyPoint, CenterKeyPoint and EndKeyPoint. For circular and elliptical shaped curves the option is CenterKeyPoint. For closed spline curves either StartKeyPoint or EndKeyPoint can be used and the result is the same.

Version

Introduced in version May 2026