Appendix E Generating Documents Using Microsoft Word
DocumentIt User Guide E-2 ni.com
Generating a Sample Document
To generate a sample document using DocumentIt and Microsoft Word,
complete the following steps:
Note If you want to generate a document from your own model, f ollow the same steps
given in this example, but use your model for document generation.
1. Create a directory where you want the output document to reside.
2. Copy all files from %CASE%\DIT\templates\msword\general to
the document directory.
3. From the Catalog Browser, select File»Load.
4. Browse through the document directory and double-click to load the
Controller_Logic_gen.dat file.
5. In the Catalog pane of the Catalog Browser, select the top-level
SuperBlock (in this case, Controller_Logic).
6. From the Catalog Browser, select Tools»DocumentIt. The Generate
Documentation dialog appears.
Table E-1. Microsoft Word Documentation Example Files
Files in %CASE%\DIT\templates\msword\general:
mswgp.tpl The template file you must specify when using DocumentIt to
generate an ASCII output file for use with the Word general
purpose documentation. It determines what information is
extracted from the model to create an ASCII output file.
mswgp.wrd This is a template file included in the mswgp.tpl file. This file
specifies RTF commands, which are recognized by Word. It
contains the template TPL command to search the model for
SuperBlocks and Blocks, and has RTF commands embedded
with template TPL commands to generate the output document.
You can load this file into Word to change the template program
or font settings for the title/section names. The changes appear
when you regenerate the document. Load this document into
Word, to see what the generated document will look like.
Files in %CASE%\DIT\templates\ascii:
Controller_Logic_gen.dat Controller logic model.