To copy a component and all its valis, right click the component and select the "Copy" button.
This feature remembers which components belong together and keeps track of their consistency for you.
To create a connected copy, click the "Copy & Connect" button. All changes which you make to this component (Values, sub components, etc.) will have an effect on all of its newly created copies, as long as they are connected. You can see which components are connected in the project tree. Connected components have a symbol in front of them.
Disconnecting Components and Valis
You can at any time disconnect a Vali or an entire component. For a component this is done by right-clicking it and subsequently clicking the "Disconnect button". For a Vali it is done by clicking the connected symbol on the right side of the screen. Disconnecting specific Valis lets you trace components which are almost the same. All other Valis of the same component will still be connected.
Connected Copy Logic
The following chapter is meant as a look-up, if you would like to know how Valispace behaves in edge-cases, before you apply the change.
A short in-depth overview of the connected-copy behaviour for advanced users
- If you create a copy of a component, the two components and all of their valis are connected.
- If the component has child-components, these are also copied and connected
- If you disconnect a component, all of its Valis are also disconnected.
- If the value of a Vali is changed to a number, all connected Valis will be updated with the same value
- Self-references (a Vali referencing another Vali of its own connected component) are maintained for connected Valis (they will also reference another Vali of their own component).
- If a Vali is disconnected, no change is applied to its value.
- If you had three Valis which were connected and you disconnect one, the other Valis still are connected.