Skip to content

Range

The keyword displays the attribute of a section, e.g. ID, BEZ, or MEMO_XXX (where XXX is a text-variable in the MEMO-field). It can be used in a text box or text cell of the PlotDesigner. The value of addressed attributes are only shown on print-preview or on printing. This enables to create a print-layout for several sections with displaying their individual description.

Syntax #(Keyword, Parm1, Parm2)
Keyword Range
Parameter 1 identifier of the attribute which has to be printed, e.g. ID, BEZ (=Description, also multi-line), default is ID
Parameter 2 is optional the name of a Plan cell in the PlotDesigner in which the section is displayed. This enables to refer to several section being a cell (e.g. as a legend).
When Parm2 is not addressed the last „active section“ is used.
Example Comment
#(Range,ID,a1) displays ID of section a1
#(Range,MEMO_X,a2) displays variable x in memo-box of section a2
#(Range,Bez,a1) displays the name of section a1
#(Range,Bez) displays name of the last active section

Example: view in PlotDesigner

In a text box, the following three expressions are inserted using the keyword #(Range, ...):

#(Range, ID) to display the ID of the current section
#(Range, Bez, A1) to display the name of the section A1, where "A1" is the name of the section in the PlotDesigner (not in CadnaA itself)
#(Range, MEMO_X) to display the text variable X of the current section

The attributes of the section are not displayed directly, but only when a plot cell is printed via the PlotDesigner.