Jump to content

Purge and Publish Script


Recommended Posts

Hi Everyone,

 

I am interested in putting together a script to automate my publishing procedures and am not sure how to go about it, or if it is even possible. Below are the list of actions I would like to automate. Can anyone help me with this please?

 

-Publish the VWX file to a PDF using Vectorworks Cloud Services in a user defined location

then

-Delete a single worksheet called "SJL Worksheet-Estimate"

-Purge document of unused symbols only

-Save a copy of this new VWX file with the text "Published" at the end in the same user defined location

-Export this published VWX file as a DWG in the same user defined location

 

Thank you

 

Maxwell

Link to comment

Are you on Mac or Windows?

 

On Mac most of the file handling can be done with Applescript.

 

Vectorworks is a very file specific system. The standard scripting tools to no allow much access to changing other files or closing a file and reopening it with a different name. It might be possible to do in Pythonscript, but I think it would be risky.

 

I posed an Applescript a few years ago to go through a folders and open multiple VWX files and export them as DWG so it is probably doable.

Link to comment

On Windows, there is no equivalent to Applescript, so you can't really deal with multiple files unless it falls under the standard batch processing capabilities.

 

Now that I re-read your request, It appears that you don't want to switch files, but rather just work on the current file. That might very well be doable in a Vector/Pythonscript.

 

Save as Copy... might be the only problem as there does not appear to be an easy way to enter the revised file name.

 

 

Link to comment

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.

×
×
  • Create New...