TitleBlock.setAttributes Method

Parent Object: TitleBlock

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/Drawing/TitleBlock.h>

Description

Adds or updates title block attributes on the title block.

Syntax

"titleBlock_var" is a variable referencing a TitleBlock object.

returnValue = titleBlock_var.setAttributes(attributes)
"titleBlock_var" is a variable referencing a TitleBlock object.

#include <Drawing/Drawing/TitleBlock.h>

returnValue = titleBlock_var->setAttributes(attributes);
"titleBlock_var" is a variable referencing a TitleBlock object.

returnValue = titleBlock_var.setAttributes(attributes);

Return Value

Type Description
boolean Returns true if all specified attributes were successfully added or updated. Returns false when attributes is null or empty, when any attributeName is invalid or unsupported, when the title block is reserved, or when the operation could not be completed.

Parameters

Name Type Description
attributes TitleBlockAttributeParameter[] The title block attributes to apply in a single call. Pass one or more TitleBlockAttributeParameter objects. Objects from createAttributeParameter add new attributes at position for supported predefined tags (for example SCALE). Objects returned from getAttributes update position when passed back to setAttributes. Multiple attributes with the same tag, such as several SCALE placements, can be added in one call.

Version

Introduced in version October 2026