TitleBlockSourceTypes Enumerator

Description

The set of sources a title block can be created from when using TitleBlocks.add. This determines which additional inputs on the TitleBlockInput object are required.


Defined in namespace "adsk::drawing" and the header file is <Drawing\DrawingTypeDefs.h>

Values

Name Value Description
DrawingFileTitleBlockSourceType 2 Imports a new title block from another drawing file (.f2d). The referenceDrawingDataFile property specifies the cloud drawing. Optionally set originTitleBlock to the name of a title block in the source drawing; when originTitleBlock is empty, all non-default title blocks from the source drawing are imported. ANSI_TITLEBLOCK and ISO_TITLEBLOCK are skipped. Title blocks are imported only when the source drawing standard matches the target drawing standard (ISO or ASME/ANSI). Title blocks whose names already exist in the drawing are not imported; if any such name is found in the source file, no title blocks are imported and TitleBlocks.add throws. Imported title blocks are added to the drawing title block list and do not change the title block on the active sheet.
ExistingTitleBlockSourceType 0 Creates the new title block from an existing title block. The originTitleBlock property is required and specifies which title block to use.
ReferenceTitleBlockSourceType 1 Imports a new title block from a drawing template file (.f2t). The referenceTemplateDataFile property specifies the cloud template. Optionally set originTitleBlock to the name of a title block in the template; when originTitleBlock is empty, all non-default title blocks from the template are imported. ANSI_TITLEBLOCK and ISO_TITLEBLOCK are skipped. Title blocks are imported only when the source template drawing standard matches the target drawing standard (ISO or ASME/ANSI). Title blocks whose names already exist in the drawing are not imported; if any such name is found in the source file, no title blocks are imported and TitleBlocks.add throws. Imported title blocks are added to the drawing title block list and do not change the title block on the active sheet.

Version

Introduced in version October 2026