This is a script that mimics the behavior of Spotlight's "Replace With Active Instrument" button in the OIP of a Spotlight Instrument, but works on any symbol with attached data.
It replaces the selected symbol in the drawing with the active symbol in the RB
and
keeps all the data of records attached to the symbols (should work for multiple record formats)
unless
the name of the field starts with a tilde "~". Fields starting with ~ will use the default data of the incomi