MTRobin Posted April 29, 2019 Share Posted April 29, 2019 Can someone walk me through how to use a script to purge the current file of all unused symbols? Thank you Maxwell Quote Link to comment
Pat Stanford Posted April 30, 2019 Share Posted April 30, 2019 In looking at this further, I don't think this is easily doable via a script. You can probably get the Purge dialog box to open, but the user will still need to select what to purge and click OK. You might be able to use one of the Build Resource List commands to get a list of all the symbols and then check each one in series to see if it is in use. If you do this make sure you start at the bottom of the list and work up so you don't change the list order as you delete items. If none of the above makes sense, this may not be a great place to try and start in learning scripting. My week/month/year is slammed, so I don't have the multiple hours it would probably take for me to try and write and debug this. If you use symbol folders it gets even more complicated. Good luck. Quote Link to comment
MTRobin Posted April 30, 2019 Author Share Posted April 30, 2019 Thanks for looking into this. I tried to use the DoMenuTextByName Function to open the Purge window, but this didn't work. Do you have any suggestions? Thanks Maxwell Quote Link to comment
Pat Stanford Posted May 1, 2019 Share Posted May 1, 2019 It appears that you can not access the Purge command via a script. In the archives we tried back in 2010 and could not find a way then either. Quote Link to comment
MTRobin Posted May 1, 2019 Author Share Posted May 1, 2019 Well that's a bummer. Thanks for all your help. Best, Maxwell 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.