Jump to content
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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


 

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.

×
×
  • Create New...