CenterMarks.add Method

Parent Object: CenterMarks

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/CenterMarks.h>

Description

Places a center mark on the sheet. This is the programmatic equivalent of the Center Mark command.

Syntax

"centerMarks_var" is a variable referencing a CenterMarks object.

returnValue = centerMarks_var.add(attachmentCurve)
"centerMarks_var" is a variable referencing a CenterMarks object.

#include <Drawing/Sheet/CenterMarks.h>

returnValue = centerMarks_var->add(attachmentCurve);
"centerMarks_var" is a variable referencing a CenterMarks object.

returnValue = centerMarks_var.add(attachmentCurve);

Return Value

Type Description
CenterMark Returns the newly created center mark, or null if the operation failed — for example when attachmentCurve is null, does not belong to a view on this sheet, or does not refer to geometry eligible for a center mark, or when a center mark already exists on that geometry.

Parameters

Name Type Description
attachmentCurve ViewCurve The view curve to attach the center mark to — the equivalent of selecting a rounded edge in the command. Must belong to a view on this sheet and refer to circular geometry eligible for a center mark.

Version

Introduced in version November 2026