Copy element to clipboard and paste to same place

The process I used can be inferred from the discussion here:

Essentially I have used some nodes from DominaDynamo, as was suggested in the solution for this topic. I wasn’t sure if I should reply on the same thread as the topic was different and solved, hence I created a new thread.