Skip to main content

Template

Struct for Template information. ! TODO Introduce TemplateType, Union Struct.

NameDescriptionType
titleThe title of the template file.string
title_resourceThe resource key for the title of the template file. It will be available only for blank template file.string
file_template_idThe file ID of the template file. It will be available only for blank templates.string
obj_idThe template object ID. It will be available only for User defined templates.ObjID
class_idThe class of the object version. For blank templates it will be always 0, For user defined templates the class id of the object will be available.number
iconThe icon for the template file. Currently it is not carrying any data. It will be implemented in future.Uint8Array
restricted_to_classesThe array of restrict to class IDs. Currently it is not carrying any data. It will be implemented in future.number[]

Example

{
"title": "<!< The title of the template file.>",
"title_resource": "<title_resource>",
"file_template_id": "<file_template_id>",
"obj_id": {
"type": 0,
"item_id": {
"internal_id": 0,
"external_repository_id": {
"connection": "<!< The external repository connection identifier.>",
"item": "<item>"
}
}
},
"class_id": 0,
"icon": 0 /*Uint8Array*/,
"restricted_to_classes": [] /* Array of number */
}