ALD Objects > Documents and Templates
  
Documents and Templates
Document (.3d file)
An PTC ALD document is a container for the various components of the particular PTC ALD application - macros, page information and conditions and content. A document is stored in readable and editable ASCII and, when read, is seen to consist essentially of a list of macros that are run when the document is opened, to create its components.
Although a list of macros that can be run to produce a document falls outside the scope of this document, as a starting point the list below describes the internal file format macros that implement the main tasks. Please refer to the Text Version of a Basic .3d Document File for a code extract from a sample document, which demonstrates a working list of document macros:
fdb
begin document
fdt
tag for text
fdo
tag for object graphic
fdr
tag for raster graphic
fdp
page layout
fdd
document layout (page list)
fdi
formatting information
fde
end document
Template (.3f file)
An PTC ALD template can be classed as an PTC ALD document, but with two main differences from an actual document:
File extension - a template has a file extension of .3f instead of .3d
* 
A template usually becomes a .3d file when it is saved containing actual content
No content: a template will usually consist of a master page or pages, which will only be copied when an actual content stream is applied to the template
Please refer to the Text Version of a Basic .3f Template File for a code extract from a sample template, which demonstrates a working list of template macros.