Reporting : Batch Documentation Facility : Available commands : DIAGRAM: Include diagrams in documents : Filtering diagrams
  
Filtering diagrams
Use the DIAGRAM command print only the diagrams that match the specified name or type.
Syntax
DIAGRAM "diagram-name" { zero or more subcommand statements }
The diagram-name is case-sensitive, and must be written exactly as it appears in the encyclopedia browser. It must also be enclosed in quotation marks. The tool interprets the name specification as a name prefix for printing diagrams and as an exact name for printing reports. All diagrams beginning with the specified name are included in the document.
To include a single diagram in the document
Trail the name with one or two spaces, and enclose the entire string in quotes:
DIAGRAM "Library Database " { }
To print every diagram in the active encyclopedia
Use the space as the name specification.
DIAGRAM " " { }
To limit the number of diagrams
Use the TYPE command to limit the number of diagrams included in the document. You can use the TYPE command with or without the name specification.
To limit the number of diagrams by TYPE, use:
DIAGRAM "diagram-name" { TYPE diagram-type }
Example
To print all Entity Relation diagrams in the current encyclopedia, use:
DIAGRAM "" { TYPE "Entity Relation" }
You can use the TYPE subcommand in conjunction with the name specification to print a single document. This will eliminate the possibility of two diagrams with the same name that were created using different methodologies from both being printed.
See also
DIAGRAM: Include diagrams in documents