Copy Rebar from element to another

hello, I am using this script to copy the set of rebars from element to another (smiler) the problem is that it selects all the rebars at the view and copy them.
how can I select the rebars in the specific element and ignore the other elements?

You can filter element input by Filter by book mask .
Or you can select element and node retrieve rebar in this element by node in ACOPackage
See them: