DrawingDimensions.addCurveMinMaxDimension Method

Parent Object: DrawingDimensions

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::drawing" and the header file is <Drawing/Sheet/DrawingDimensions.h>

Description

Creates a curve min-max dimension between two view curves using the Curve Min Max Dimension On-curve pick seeds are derived from each curve's geometry. When only the minimum solution exists (for example spline-to-spline), a minimum-distance dimension is created.

Syntax

"drawingDimensions_var" is a variable referencing a DrawingDimensions object.

returnValue = drawingDimensions_var.addCurveMinMaxDimension(firstCurve, secondCurve, placementPoint)
"drawingDimensions_var" is a variable referencing a DrawingDimensions object.

#include <Drawing/Sheet/DrawingDimensions.h>

returnValue = drawingDimensions_var->addCurveMinMaxDimension(firstCurve, secondCurve, placementPoint);
"drawingDimensions_var" is a variable referencing a DrawingDimensions object.

returnValue = drawingDimensions_var.addCurveMinMaxDimension(firstCurve, secondCurve, placementPoint);

Return Value

Type Description
CurveMinMaxDrawingDimension Returns the newly created CurveMinMaxDrawingDimension object, or null if creation failed.

Parameters

Name Type Description
firstCurve ViewCurve The first view curve to dimension. Must be on a drawing view. Line-to-line pairs are invalid.
secondCurve ViewCurve The second view curve to dimension. Must be on the same drawing view as firstCurve.
placementPoint DrawingPoint The sheet-space location of the dimension line in paper space. Use DrawingPoint.create to supply a standalone point.

Version

Introduced in version November 2026