create MethodStatic
Creates a new TextAnnotation2d
instance with the specified properties.
create(iModelDb: IModelDb, category: string, model: string, placement: Placement2dProps, textAnnotationData?: TextAnnotationProps, code?: CodeProps): TextAnnotation2d
Parameter | Type | Description |
---|---|---|
iModelDb | IModelDb | The iModel. |
category | string | The category ID for the annotation. |
model | string | The model ID where the annotation will be placed. |
placement | Placement2dProps | The placement properties for the annotation. |
textAnnotationData | TextAnnotationProps | Optional TextAnnotation JSON representation used to create the TextAnnotation2d . Essentially an empty element if not provided. |
code | CodeProps | Optional code for the element. |
Returns - TextAnnotation2d
Defined in
Last Updated: 03 September, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.