Difference between revisions of "Draw arrows"
(5.0 image, without toolbar) |
m |
||
Line 3: | Line 3: | ||
{{ReleaseBar}} | {{ReleaseBar}} | ||
− | {{Release||4.6|Use the arrow tool to draw or remove arrows (influences) between variable nodes.}}{{Release|5.0|| | + | {{Release||4.6|Use the arrow tool to draw or remove arrows (influences) between variable nodes.}}{{Release|5.0||Here is how to draw or remove arrows (influences) between variable nodes. You must be in edit mode. Move your cursor over the first (origin) node so that its popup icons appear. Move your cursor over the arrow head on the right. [[image:HoverDrawArrowIcon.png]] hover icon.}} Now press and drag an arrow from this node to the second (destination) node. Drawing an arrow from node <code>A</code> to node <code>B</code> puts <code>A</code> in the list of inputs of <code>B</code>. When you create or edit the definition of <code>B</code>, you can now conveniently select <code>A</code> from the inputs menu to insert it into its [[Definitions|Definition]]). |
=== Draw an arrow=== | === Draw an arrow=== | ||
Line 13: | Line 13: | ||
{{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.}} | {{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. | + | To speed up drawing arrows from multiple nodes to a single destination, select all the origin nodes. Drag an arrow from any origin node{{Release|5.0||'s [[image:HoverDrawArrowIcon.png]] hover icon}} to the destination, it it will add an arrow from every origin node when you release the mouse button. |
− | <tip title="Tip">Some arrows are hidden. They | + | <tip title="Tip">Some arrows are hidden. They disappear after you draw them, even though the underlying dependency remains. For example, arrows to and from indexes and functions are hidden by default. You can change these settings in the [[Diagram Style dialog]] and [[Node Style dialog]].</tip> |
=== Remove an arrow=== | === Remove an arrow=== | ||
+ | |||
* Click the arrow to select it, then press the ''Backspace ''or ''Delete ''key, or | * 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. | * 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. | ||
− | <tip title="Tip">When you enter or edit a definition ([[Creating or editing a definition]]), | + | <tip title="Tip">When you enter or edit a definition ([[Creating or editing a definition]]), it automatically updates the arrows into the variable to reflect those variables that appear in the definition (and not those that don't).</tip> |
=== Influence cycle or loop === | === Influence cycle or loop === | ||
Line 27: | Line 28: | ||
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. | 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. | + | If you try to draw arrows that would make a cycle, it warns and prevents you. Except, it does allow a cycle in a[[Dynamic Simulation]] loop -- i.e. where 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 (or a variable defined by [[Iterate]] which may depend on itself.) |
+ | |||
+ | === Influence arrows and Modules === | ||
− | + | Influence arrows to or from [[Modules and Libraries]] reflect any influences between variables inside the Modules: | |
− | |||
{{Release||4.6|:[[File:Chapter4 10.png]]}}{{Release|5.0|| | {{Release||4.6|:[[File:Chapter4 10.png]]}}{{Release|5.0|| | ||
Line 38: | Line 40: | ||
}} }} | }} }} | ||
− | Arrow from variable | + | Arrow from one variable to another:<br /> |
:[[File:Chapter4 11.png]] | :[[File:Chapter4 11.png]] | ||
− | Arrow from variable | + | Arrow from a variable to a module: <br /> |
:[[File:Chapter4 12.png]] | :[[File:Chapter4 12.png]] | ||
− | Arrow from module | + | Arrow from a module to a variable:<br /> |
:[[File:Chapter4 13.png]] | :[[File:Chapter4 13.png]] | ||
− | Arrow from module to module<br /> | + | Arrow from a module to another module:<br /> |
:[[File:Chapter4 14.png]] | :[[File:Chapter4 14.png]] | ||
− | Double-headed arrow between | + | Double-headed arrow between modules:<br /> |
:[[File:Chapter4 15.png]] | :[[File:Chapter4 15.png]] | ||
− | Small arrow-head on left (right) shows menu with remote inputs (outputs) (<br /> | + | Small arrow-head on left (or right) shows menu with remote inputs (outputs): (<br /> |
:[[File:Chapter4 16.png]] | :[[File:Chapter4 16.png]] | ||
− | Press | + | Press 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 [[Diagram window#Seeing remote inputs and outputs|Seeing remote inputs and outputs]] | For more go to [[Diagram window#Seeing remote inputs and outputs|Seeing remote inputs and outputs]] | ||
Revision as of 18:33, 10 June 2018
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 |
---|
Here is how to draw or remove arrows (influences) between variable nodes. You must be in edit mode. Move your cursor over the first (origin) node so that its popup icons appear. Move your cursor over the arrow head on the right. hover icon. Now press and drag an arrow from this node to the second (destination) node. Drawing an arrow from node
A
to node B
puts A
in the list of inputs of B
. When you create or edit the definition of B
, you can now conveniently select A
from the inputs menu to insert it into its Definition).
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. Drag an arrow from any origin node's hover icon to the destination, it it will add an arrow from every origin node when you release the mouse button.
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. Except, it does allow a cycle in aDynamic Simulation loop -- i.e. where 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 (or a variable defined by Iterate which may depend on itself.)
Influence arrows and Modules
Influence arrows to or from Modules and Libraries reflect any influences between variables inside the Modules:
Arrow from one variable to another:
Arrow from a variable to a module:
Arrow from a module to a variable:
Arrow from a module to another module:
Double-headed arrow between modules:
Small arrow-head on left (or right) shows menu with remote inputs (outputs): (
Press 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