(Redirected from Att rlm license)

(Up to Analytica Reference)

An Attribute is a property or field of an Analytica Object, such as the Identifier, Title, and Value of a Variable. Some attributes you can easily see and change -- such as, the Class, Identifier, Title, Description, and Definition of a Variable. Others you can see, but can't modify directly -- such as, the Value, Inputs and Outputs of a Variable. Some attributes apply to a particular object class -- such as Author and Creation date apply only to a Model or Module; the Parameters and Recursive attributes apply only to a Function. There are also many internal attributes you don't usually see -- such as, Nodeinfo, NodeSize, and Nodefont. This page describes first the most common editable Attributes, then non-modifiable Attributes, and finally obscure internal Attributes that users rarely need to know about.

Common editable attributes

These attributes are common to all classes of user-defined objects. You can edit them directly in Edit mode in the Object window and Attribute panel:

The class of the object, such as Variable, Index, Function, or Module. You may change the Class of an object only to a compatible class: You can change a Variable whose Class is Chance, Constant, Determ, Decision, Index, Objective, Variable to another of these Classes. You may change a Module from Module subclass to another, including Library, FiledLibrary, Model, Module, FiledModule, or Form. You can't change the class of a Function, Button, Text or system object. In Edit mode, in the Object window or Attribute panel, the Class appears as a pulldown menu that lets you change it to another compatible Class.
The unique name or identifier of the object. An identifier must start with a letter, and contain only letters, digits, or underscore, up to 20 characters. Identifiers are insensitive to case -- but Analytica retains and shows the case originally provided (or adapted from the Object's title). So you can use CamelCase to clarify words in the identifier.
A word or brief phrase identifying the the object. It usually appears in the diagram node, and in many other places in the user interface. It's best to limit a Title to about 50 characters. By default, the identifier is created from the first 20 characters of the title, substituting "_" for blank or any character that isn't a letter or digit.
Text that describes or documents the object. For a variable, it should describe what the quantity represents. For a function, it should describe what value it returns and what parameters it expects. If the definition is not obvious, it should also explain briefly what definition is doing. It should also mention any exceptions, such as what it does if an input or parameter is outside the expected domain.

Editable attributes of Variables and Functions

The units of measurement of a variable, or value returned by a function -- such as "$/year" or "km/hr". It's best to use abbreviations to keep units within about 10 characters.
The expression used to compute the value of a variable or function.
An expression used to test that the computed result value is valid. If it returns false, it gives a warning. This is helpful to detect errors in user input or complex calculations. See Check Attribute.

These attributes apply only to functions:

A list of the function parameters, enclosed in parentheses. It may include qualifiers that specify what data type or dimension are expected for each parameter, or whether a parameter is optional or may be repeated. It is good practice to also list the main (non-optional) parameters (without qualifiers) in the title, so users can easily see what parameters it expects from seeing the function node in a diagram.
A boolean, with value 0 (default) or 1, specifies whether the function is recursive -- i.e., it may call itself in its definition, or call another function that calls it (mutually recursive). By default, it is not displayed. You need to set it to be displayed in the Attributes dialog.

Editable Attributes of Modules

The name(s) of the person or people who created this module. When you start a new model, it may automatically fill this in with the name of the owner of the computer, if registered with Windows.
Identifies a single variable within the module that functions at the module's primary input. Drawing an arrow into this module node inserts the origin of the arrow as the definition of this variable.
Identifies a single variable within the module that serves as the module's primary output. Drawing an arrow from this module node treats this variable as the origin of the arrow -- for example, for use as an input to another object.

Non-editable attributes of modules

The Module class includes subclasses Model, Module, Filed Module, Library, Filed Library, and Form. These are attributes of modules that you can see but not edit in the Object window and Attribute panel:

The name of the owner of the computer, if registered with Windows, on which this module was last saved from Analytica.

These attributes apply only to a Model, Module, or Library that is separately filed:

Date (Created)
The time and date on which the module was first created.
Savedate (Last Saved)
The time and date on which this model or separately filed module or library was last saved.
Fileinfo (File info)
The directory path and name of the file from which this model was read from or to which it was last saved.

Non-editable attributes of variables and functions

These attributes are of variables and functions are visible, but not editable, in the Object window and Attribute panel:

The computed value of the variable (not available for functions). May be displayed in Object window, but is not displayed by default.
A list of variables and functions used in the definition, after definition has been parsed. Before parsing, it may contain variables and functions from which arrows were drawn.
A list of variables and functions that use this object in their definitions.
The number of CPU seconds that have been spent evaluating or obtaining the value of the variable, or computing the result of the function, since the object was created or loaded, or since the ResetEvalTimes command was last executed. This timing does not include the time spent evaluating parent values.
The number of CPU seconds spent in evaluation of the object, including time spent evaluating or obtaining the values of other variables that it depends on. This is the cumulative time since the object was first created or loaded, or since the ResetEvalTimes command was last executed.

Hidden attributes of Variables and Functions

The number format parameters specified in the Number Format Dialog for numbers generated in a variable or function. If absent, it uses the default Number Format.
The parse-tree (DCODE) of the definition. It displays as the code, usually with extra parens. This is determined by the Definition Attribute.
A list of objects among inputs from which arrows are to be displayed. It does not display arrows from Inputs that are not in Displayinputs.
The module that contains this object. (Applies to all objects except the top model.)

Hidden attributes of Modules

The list of objects in this module. (Applies only to modules.)
(Applies only to modules.) The default node size for new nodes in this module. It uses the same format as Nodesize. If empty, it inherits the default size from its parent module. For a Model, it uses the default size from the Analytica initialization.

Node attributes

These attributes affect the location, size, and appearance of each node depicting the object in its parent diagram (Module). You can modify some in the Diagram view (NodeLocation, NodeSize), some in the Node Style dialog (NodeFont, NodeInfo), or using the Color palette dialog, (NodeColor and NodeFontColor), You can see Nodelocation and Nodesize in the parent Diagram and modify them directly in Edit mode:

The location of the node center in its parent diagram, as x,y,1, where x and y are number of pixels rightwards and downwards from the top-left corner of the diagram. The "1" means what???
The size of the node, as x,y, where x and y are the half width and half height in pixels, i.e. the distance from the node center to each edge.
The color for this node, as r,g,b, where each color is in the range 0 to 65535. If empty, it uses the default color set for this object class. You can modify it directly by selecting the node in the diagram, opening the Color dialog, and selecting a color.
Controls the font color of a node in a diagram. You can modify it from the Color dialog. The attribute is in RGB format, with three comma-separated integers, encoding Red, Green, and Blue components. Each is an integer in the range of 0 to 65535. For example, you could change the font color for Secured_Revenues variable to green thus:
NodeFontColor Secured_Revenues : 0,65535,0

You can see the effects of Nodefont and Nodeinfo in the parent diagram. You can modify them in the Node Style dialog.

This affects how the node appears. It uses this format, with each value as a Boolean -- 0 or 1 -- except widthOfCtrl.
inputArrows: set to 1 to show all input influence arrows or 0 to suppress them
outputArrows: set to 1 to show all output influence arrows or 0 to suppress them
label: set to 1 to show the title (or identifier) in the node, or 0 not to.
border: set to 1 to show the thin border around the node, or 0 not to.
fill: set to 1 to fill the node with selected color, or 0 not to.
label: set to 1 to show the title (or identifier) in the node, or 0 not to.
useCustomFont: set to 1 to use the custom font set in NodeFont, or 0 not to.
widthOfCtrl: For a user input or output node, this specifies the width of the field (for a text or choice menu) or the button for other types.
bevel: set to 1 to show a bevel to make the node appear outdented -- default for button nodes -- or 0 not to.
ShowFormIcon: controls whether the little result mode icon (e.g., "Mid") displays to the right of the result button or not.
Embedded: is reserved for a future release, where it will specify that the edit table, result view, or module is shown directly on the diagram within the node's rectangular area.
Hidden: is also for a future release, to make the node invisible in its Diagram.
The node font family and size in points, e.g. Bodoni, 16. If empty, it uses the default font family and size set for the parent diagram module.
When an index or result table contains a handle to an object, it shows title of the object as a blue clickable link. When you click a handle link, it shows the object. The number assigned to this attribute controls how it shows the object when you click :
  1. Opens its Object window
  2. Opens its parent diagram with the node selected
  3. If it's a Module, open its Diagram with nothing selected. Otherwise, Open parent Diagram with the node selected.

The attribute is inherited: If you set this attribute for a Model, it sets the default for all results. If you set it on a module, it sets the default for results inside that module. If you set it for a particular variable, it applies only to that variable.

Window status attributes

These attributes store the location and size of windows, including Diagram, Object, and Result windows.

The location and size of the diagram window, where x, y are location of top left corner, w and h are width and height in pixels. b is a bit field that stores the diagram style options. t is the style for tabs when a tabbed diagram style is selected.
v, x, y, w, h, b, tabs, buttonStyle
v is a version number. Should be 2.
x, y in the coordinate of the top-left corner of the window frame when the window is not maximized, relative to the top-left corner of the desk area (the gray background area that starts under the toolbar).
w, h are the width and height of the client area of the window when the window is not maximized. This client are is the area of the window not including the chrome around the window, the window title bar, or the attribute panel, but it does include the diagram scroll bars (which have a width and height of 16). In Analytica 4.6 and earlier, the height is from the bottom edge of the title bar to the bottom of the diagram's horizontal scroll bar, and hence, includes the height of the module hierarchy stripe within the total height. In Analytica 5.0, the height starts at the lower edge of the hierarchy stripe -- so it does not include the hierarchy stripe.
b is a bit field, which is the sum of the following values:
  • 1 = Show arrows to/from modules
  • 2 = Show arrows to/from indexes
  • 4 = Show arrows to/from functions
  • 8 = Turn off background (i.e., the diagram background will appear white)
  • 16 = Show dynamic dependency arrows
  • 32 = Show arrows for dependencies in the Check attribute
tabs is reserved for a future enhancement (not currently exposed) It encodes whether the diagram is a tabbed diagram, which side the tabs display on, and which style of tabs are used. Possible values are:
  • 0 = Tabs hidden (e.g. overlays, controlled via button scripts)
  • 1 = Tabs on top (default)
  • 2 = Tabs on bottom
  • 3 = Tabs on left (vertical text)
  • 4 = Tabs on right (vertical text)
  • 5 = Wide tabs on left (horizontal text)
  • 6 = Wide tabs on right (horizontal text)
buttonStyle controls how the buttons in input and output nodes display (such as Calc, Edit Table, etc).
  • 0 = Normal text (default in Analytica 5.0)
  • 1 = Bolded text (pre-5.0 standard)
  • 2 = Blank (no label or icon in button)
  • 3 = Icon
buttonStyle was introduced in Analytica 5.0
The location and size of the object window, where X, Y are location of top left corner, W and H are width and height in pixels. v is version number, usually 1. (Applies to all user-defined objects.)
v, X, Y, W, H
The type, location and size of the result window for a variable, where X, Y are location of top left corner of the window, W and H are width and height in pixels, Graph is 1 if a graph view, 0 if a table view, and U is text defining the uncertainty view. v is version number, usually 1. (Applies only to variables.)
v, X, Y, W, H, Graph, U
Lists the indexes for a multidimensional variable, in sequence defining which index is for rows (x axis), which for columns (key), and the remaining as slicers, from bottom to top.

Internal Engine Attributes










Att_domainKids, Att_domainParents

User Interface State





Contains one external/exogenous value expression. Recognized by Analytica 3.1 and earlier, where the expression for the X value in an XY graph was stored.


Holds a list of external values for a result window, which can then be used as graphing dimensions. Analytica 4.0 allows more than one external value to be brought in for plotting against the primary result of a variable. This attribute holds a list of expressions -- most commonly, each expression consists of a single variable identifier.

The xyExpr may also contain one addition external expression. (The reason it is split across two attributes is for greater 3.1 interoperability).








Graphing Role Attributes

These attributes are: Att_xRole, Att_yRole, Att_colorRole, Att_symbolRole, Att_symbolSizeRole, Att_originRole.

They define the graphing pivot in coordination with the reformVal attribute. The settings in these attributes are combined with the current chart type, dimensions present in the current value (or values), etc., and Analytica may adjust the pivot actually shown to create a consistent set of roles. Since the dimensionality of results can change in Analytica (as upstream dimensions or added or removed, the view type can be changed, or the number of elements in a dimension may change), the exact pivot used the previous time the graph was displayed may no longer be sensible. However, when possible, the roles defined in these attributes do become the roles used in the graph.

Each of these role attributes can hold values in several possible forms:

  • Self: The keyword Self indicates that the main result fills the role.
  • barOrigin: The attribute name barOrigin indicates that the expression found in the legacy barOrigin attribute fills the role.
  • xyExpr: The attribute name indicates that the expression found in the xyExpr attribute fills the role.
  • identifier : The identifier indicates that the index having this identifier fills the role.
  • Sys_LocalIndex("name"): Syntax indicating that the local index having the indicated name is used.
  • Sys_CoordIndex(value) : The slice of the main result corresponding to [CoordIndex=value] is used, where value is an element of the coordinate index.
  • 0 : The numeric value zero indicates that the main result is used (same as Self).
  • n > 0: A positive integer value indicates that an external value is used. Several exogenous values may be attached to the result view (see Att_exogenousValues and xyExpr attributes). These are numbered, with the xyExpr always being n=1 if present, and then the remaining continuing in order through those listed in Att_exogenousValues, and finally the legacy barOrigin attribute expression coming last.
  • n < 0: A negative integer value identifies a coordinate index slice by position. The role uses the slice of the main result corresponding to [@CoordIndex=abs(n)].

Also barOrigin.


  • TableCellDefault: The default value (or Checkbox or Choice expression) used in a new cell of an Edit table when you add or extend an index of that table.


See DbQuery for examples of use

See Also


You are not allowed to post comments.