Jump to content
Developer Wiki and Function Reference Links Read more... ×
MTRobin

Purge Script

Recommended Posts

Can someone walk me through how to use a script to purge the current file of all unused symbols?

 

Thank you

 

Maxwell

Share this post


Link to post

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.

Share this post


Link to post

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

Share this post


Link to post

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.

Share this post


Link to post

Well that's a bummer. Thanks for all your help.

 

Best,

 

Maxwell

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×