Difference between revisions of "Draw arrows"
(5.0 image, without toolbar) |
|||
Line 1: | Line 1: | ||
[[Category:Analytica User Guide]] | [[Category:Analytica User Guide]] | ||
<breadcrumbs>Analytica User Guide > Create and edit a model> {{PAGENAME}}</breadcrumbs> | <breadcrumbs>Analytica User Guide > Create and edit a model> {{PAGENAME}}</breadcrumbs> | ||
+ | {{ReleaseBar}} | ||
− | Use the arrow tool to draw or remove arrows (influences) between variable nodes. Drawing an arrow from variable or function <code>A</code> to <code>B</code> puts <code>A</code> in the list of inputs of <code>B</code>. This makes it conveniently available to select from the inputs menu when creating or editing the definition of <code>B</code> (see [[Definitions]]). | + | {{Release||4.6|Use the arrow tool to draw or remove arrows (influences) between variable nodes.}}{{Release|5.0||You must be in edit mode to draw or remove arrows (influences) between variable nodes. Drawing is initiated by dragging from the [[image:HoverDrawArrowIcon.png]] hover icon.}} Drawing an arrow from variable or function <code>A</code> to <code>B</code> puts <code>A</code> in the list of inputs of <code>B</code>. This makes it conveniently available to select from the inputs menu when creating or editing the definition of <code>B</code> (see [[Definitions]]). |
=== Draw an arrow=== | === Draw an arrow=== | ||
− | To draw an arrow, first click the arrow icon [[File:Chapter4 9.png]] in the toolbar to select the arrow tool. In arrow mode, the cursor changes to this arrow icon when over a [[diagram window]]. | + | {{Release||4.6|To draw an arrow, first click the arrow icon [[File:Chapter4 9.png]] in the toolbar to select the arrow tool. In arrow mode, the cursor changes to this arrow icon when over a [[diagram window]]. |
# Drag from the origin node (which highlights) to the destination node (which also highlights). | # Drag from the origin node (which highlights) to the destination node (which also highlights). | ||
# Release the mouse button, and it draws the arrow. | # Release the mouse button, and it draws the arrow. | ||
+ | }} | ||
+ | {{Release|5.0||To draw an arrow, hover over the origin node until the [[hover icons]] appear, then drag from the [[image:HoverDrawArrowIcon.png]] [[Hover icons|hover icon]] to the destination node (which will highlight) and release the mouse.}} | ||
− | To speed up drawing arrows from multiple nodes to a single destination, select all the origin nodes. Then drag from any origin node to the destination node. When you release the mouse, it draws arrows from all the origin nodes. | + | To speed up drawing arrows from multiple nodes to a single destination, select all the origin nodes. Then drag from any origin node{{Release|5.0||'s [[image:HoverDrawArrowIcon.png]] hover icon}} to the destination node. When you release the mouse, it draws arrows from all the origin nodes. |
<tip title="Tip">Some arrows are hidden. They do not appear even when you try to draw them. For example, by default, arrows to and from indexes and functions are not shown. You can change these settings in the [[Diagram Style dialog]] and [[Node Style dialog]].</tip> | <tip title="Tip">Some arrows are hidden. They do not appear even when you try to draw them. For example, by default, arrows to and from indexes and functions are not shown. You can change these settings in the [[Diagram Style dialog]] and [[Node Style dialog]].</tip> | ||
Line 29: | Line 32: | ||
When there are arrows between variables in different [[Modules and Libraries|modules]], they are reflected by arrows to and from the module nodes. | When there are arrows between variables in different [[Modules and Libraries|modules]], they are reflected by arrows to and from the module nodes. | ||
− | :[[File:Chapter4 10.png]] | + | {{Release||4.6|:[[File:Chapter4 10.png]]}}{{Release|5.0|| |
+ | :{{CalloutAnnotationBlock|[[image:Rent vs Buy Discount rate selected.png]]|{{CalloutAnnotation| | ||
+ | Arrow from a variable to a module|pt=157,190|v=150|style=border-style:none;text-align:right}}{{CalloutAnnotation| | ||
+ | Arrow from a module to a variable|v=250|pt=294,256|style=border-style:none;text-align:right}} | ||
+ | }} }} | ||
Arrow from variable node to variable node<br /> | Arrow from variable node to variable node<br /> |
Revision as of 22:57, 24 July 2017
Release: |
4.6 • 5.0 • 5.1 • 5.2 • 5.3 • 5.4 • 6.0 • 6.1 • 6.2 • 6.3 • 6.4 • 6.5 |
---|
You must be in edit mode to draw or remove arrows (influences) between variable nodes. Drawing is initiated by dragging from the hover icon. Drawing an arrow from variable or function
A
to B
puts A
in the list of inputs of B
. This makes it conveniently available to select from the inputs menu when creating or editing the definition of B
(see Definitions).
Draw an arrow
To draw an arrow, hover over the origin node until the hover icons appear, then drag from the hover icon to the destination node (which will highlight) and release the mouse.
To speed up drawing arrows from multiple nodes to a single destination, select all the origin nodes. Then drag from any origin node's hover icon to the destination node. When you release the mouse, it draws arrows from all the origin nodes.
Remove an arrow
- Click the arrow to select it, then press the Backspace or Delete key, or
- Just redraw the arrow from the origin node to the destination node. If the origin variable is used in the definition of the destination, it asks if you really want to remove it.
Influence cycle or loop
An influence cycle or loop occurs when a variable A depends on itself directly, where A → A, or indirectly so that the arrows form a directed circular path, e.g., A → B → C → A.
If you try to draw arrows that would make a cycle, it warns and prevents you. The exception is if at least one of the variables in the cycle is defined with the Dynamic function, and contains a time- lagged dependence on another variable in the cycle, shown as a gray arrow (see Dynamic Simulation), or a variable defined by Iterate which may depend on itself.
The meaning of influence arrows
When there are arrows between variables in different modules, they are reflected by arrows to and from the module nodes.
Arrow from variable node to variable node
Arrow from variable node to module node
Arrow from module node to variable node
Arrow from module to module
Double-headed arrow between module nodes
Small arrow-head on left (right) shows menu with remote inputs (outputs) (
Press on the arrowhead to the left (right) of node to see a menu listing all local and remote inputs (outputs). You can select an object from these menus to jump to see that object node in its parent diagram. For more go to Seeing remote inputs and outputs
See Also
- Draw arrows between modules
- Tutorial: Drawing arrows between variables
- Tutorial: Drawing arrows between nodes
- GetArrowsOnDiagram
- Model building by mouse
- Definitions
Enable comment auto-refresher