REFERENCE:
When using the Documentation Designer to design custom documentation templates for Together Documentation Generator building block (DocGen), you have to reference the internal variables and functions to specify formulae expressions, and provide section flow control.
When the DG (Documentation Generator) executes a
template and generates a report,
it produces some specific internal information, which may be
interesting to include in the report.
This information, for example, includes project name , current date/time etc.
Moreover, there are special internal temporary data that appear when
DG executes
some particular parts of the template.
DG variables enable access to this information and it's insertion in
the report.
Each variable has specific name and represents some particular kind
of internal DG informaton available at any particular moment.
Internal variables are not all accessible at any instant. Most of them appear only in special areas or inside special sections.
DG variables belong to one of the following types: String,
RwiElement, RwiProperty.
Access to these variables is provided by appropriate functions in
formula expressions:
getDGVariable,
getDGRwiElement, getDGRwiProperty.
|
Variable |
Possible Values |
Availability |
|
|
inside any Iteration Section |
|
|
inside Property Iterator |
|
|
inside Property Iterator |
|
"string", for String property "boolean", for boolean property |
inside Property Iterator |
|
|
inside Property Iterator |
|
curPropertyInstance : RwiProperty
|
|
inside Property Iterator |
|
|
the same |
|
|
inside Element Iterator |
|
null, if it is the beginning of the scope |
inside Element Iterator |
|
|
in report / page |
|
|
in page header / footer areas |
|
"yes" / "no" |
in any place |
|
"all_model" - the scope is the whole model "current_package" - the scope is the current package only "current_package_recursive" the scope is the current package with subpackages "current_diagram" - the scope is the current diagram only |
in any place |
|
|
inside stock sections |