Directives
The Relationship Visualizer has additional directives which look like SQL which can be used to enhance the batch processing capabilities. Think of them as extensions to SQL.
Clear the results from the data worksheet
RESET
Specify the workbook containing the data
SET DATA FILEwhere the workbook name is placed in Column C.
Placeholders
Set placeholder values for substitution into SQL, and wrap placeholder name in braces in the SQL.
SET PLACEHOLDER placeholder_name = value
For example, to query for records matching the value "Metropolitan", assign Metropolitan to a placeholder, then use the placeholder name wrapped in braces in the SQL as static text in WHERE comparisons, label, or tooltip text.
SET PLACEHOLDER subway_line = Metropolitan
SELECT [station_from] AS [Item],
[station_to] AS [Related Item],
'{subway_line} Line' AS [Label],
FROM [london_underground$]
WHERE [tube_route] = '{subway_line}'Show the graph immediately after all SQL statements processed
Pattern: PREVIEW [ AS ( DIRECTED | UNDIRECTED ) GRAPH ]
PREVIEWPREVIEW AS DIRECTED GRAPHPREVIEW AS UNDIRECTED GRAPH
Publish the graphs as files
Pattern: PUBLISH [ ALL VIEWS ] [ AS ( DIRECTED | UNDIRECTED ) GRAPH ] [ file prefix ]
PUBLISHPUBLISH AS DIRECTED GRAPHPUBLISH AS UNDIRECTED GRAPHPUBLISH ALL VIEWSPUBLISH ALL VIEWS AS DIRECTED GRAPHPUBLISH ALL VIEWS AS UNDIRECTED GRAPH
You can specify a value to use for the File Name Prefix as the last value of the directive. for example, if the desired prefix is foobar, the directives are:
PUBLISH foobarPUBLISH AS DIRECTED GRAPH foobarPUBLISH AS UNDIRECTED GRAPH foobarPUBLISH ALL VIEWS foobarPUBLISH ALL VIEWS AS DIRECTED GRAPH foobarPUBLISH ALL VIEWS AS UNDIRECTED GRAPH foobar
Logging
Turn on/off logging of errors to file Relationship Visualizer ADO Log.txt
ENABLE LOGGINGDISABLE LOGGING
Environment Diagnostics
Write environment diagonostic information to file Relationship Visualizer ADO Log.txt
LOG ENVIRONMENT
