What I meant is to separate a single component from the circuit in order to be able to measure it with the multimeter. In the example you showed in the image, resistor2 would be disconnected from both sides, that is, it would be completely separated from the circuit. The reason is that it has two values: one when connected and the other when disconnected.
If You know 100% is gonna be disconnected then should be easy, assuming you add a new Variable to the family "None_Wires_Object" which you will store the "Current" for each component then:
I'm not sure which one you refer for Multimeter the one that has one or two cables but is the same logic:
On multimeter cable overlapping Node or the two Nodes
You can add an Extra check (Node is Not connected) to make sure is not connected
Pick Component by UID = Node.parent >>> and Set Multimeter to Component.Current
Note:
This will work if the node is not on top of another node because otherways it will pick multiple Nodes and then you gonna have to filter more the picking to choose the one you want so you gonna have to add more events to filter the picking until you are left with one. So basically you have to deal with multiple picking issue if you know you not gonna have control over that because the user is the one dragging and can leave it anywhere including on top of other nodes.
====================================
- I need to implement the multimeter (as you may have seen in the simulator) to measure the components when they are connected or not. This happens at the ends of the component. What do you suggest for that?
Sorry, but as I cannot see this image, I don't know if I understood your comment correctly. I would use the multimeter to touch the probes to the ends of a component and the value would appear on the panel. In the simulator that I shared the link in the first post, the multimeter is at the top right of the screen and you can drag it to use the probes.
It sounds that the Multimeter is the one with two cables:
If you just want to know if a component is not connected at all then
You could do:
Assuming that the multimeter is the one with two cables, you will have two check the two nodes of the component at the same time, so something like:
-Multimeter.Cable1 Is overlapping Node
-Node.Connected = False
-Multimeter.Cable2 Is overlapping Torque
-Torque.parent = Node.Parent
-Torque.UID is not equal to Node.UID >>> To make sure is not
overlapping the same Node
-Torque.Connected = False
This means Is not Connected: Your Action Here
But again you have the same issue of multiple Picking as I mentioned above so just make sure that the nodes are not overlapping other nodes
Example:
Here the (Wire & Resistror1)are connected but the fuse is overlapping swell but is not connected to any of them so you have to deal with those type of situations. The Example from that website they don't have that problem because they allow multiple connections so if more than one node are overlapping it means they are automatically connected therefore they avoid this issue.
=========================
Awesome! It is possible to control this animation, right? For example, use the switch to turn on (show the animation) and turn off (stop the animation) or still disable the animation when the circuit is cut?
If you check event 43 it is just one event so you can turn (ON/Off) the boolean