michaelk Posted February 8, 2013 Share Posted February 8, 2013 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 incoming symbol. I'll attach a file so it's clear how it works. Pick a symbol in the drawing and use the "replace" button on the OIP to replace it with a different symbol. Recalculate the worksheet. All the data goes to the default data of the incoming symbol. i.e. you need to reinter the room, plate #, engraving, etc. Select a different symbol in the drawing. Make another symbol active in the RB. Run the script. Recalculate the worksheet. The data in the red cells is always the default data of the incoming symbol. The rest of the data uses the values from the outgoing symbol. mk SuperReplace_2013.vwx Quote Link to comment
DianaK Posted May 12, 2018 Share Posted May 12, 2018 Love for this attachment to be reattached in this new forum if possible, please. Quote Link to comment
Vectorworks, Inc Employee PVA - Admin Posted May 14, 2018 Vectorworks, Inc Employee Share Posted May 14, 2018 Attached below: SuperReplace_2013.vwx Quote Link to comment
Charlie Winter Posted May 25, 2024 Share Posted May 25, 2024 @michaelkI think this is broken in 2024. 😕 Quote Link to comment
michaelk Posted May 25, 2024 Author Share Posted May 25, 2024 @Charlie Winter I think it's been broken for a while 🙂. It may have already been broken when @DianaK got it. I wrote it in 2013, which is right when I was learning how to write scripts. So it may not be a high quality script to begin with. I'll see if I have a later version of it. Quote Link to comment
Charlie Winter Posted May 25, 2024 Share Posted May 25, 2024 24 minutes ago, michaelk said: I'll see if I have a later version of it. Let me know! I'm happy to go down the rabbit hole of writing a new one. Quote Link to comment
Charlie Winter Posted May 25, 2024 Share Posted May 25, 2024 The OG 'Replace with Symbol' command does the job correctly now. You just need to check 'Use Records of Original Objects'. 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.