---
title: registerAnnotationTemplate
summary: Function in @bimworks/viewercommon.
order: 10
languages: [javascript]
sdk-package: JavaScript · @bimworks/viewercommon
---

# registerAnnotationTemplate

[[page:reference/javascript/api|API catalogue]] · `@bimworks/viewercommon` · Function

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
function registerAnnotationTemplate
````



## Members

| Member | Kind | Description |
|---|---|---|
| [[page:reference/javascript/bimworks-viewercommon/registerannotationtemplate-2dacf4e3#member-bimworks-viewercommon-registerannotationtemplate-fcc252cfb409|registerAnnotationTemplate]] | Method | Makes a template available by name. Application names contain a dot ("acme.fireRating"); built-in names are taken |

## `registerAnnotationTemplate` {#member-bimworks-viewercommon-registerannotationtemplate-fcc252cfb409}

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
registerAnnotationTemplate(name: string, template: AnnotationTemplate<any>): void
````

Makes a template available by name. Application names contain a dot ("acme.fireRating"); built-in names are taken

### Parameters

| Name | Type | Description |
|---|---|---|
| `name` | `string` |  |
| `template` | `AnnotationTemplate<any>` |  |
