MTRobin Posted April 25, 2019 Share Posted April 25, 2019 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 Quote Link to comment
Pat Stanford Posted April 26, 2019 Share Posted April 26, 2019 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. Quote Link to comment
MTRobin Posted April 26, 2019 Author Share Posted April 26, 2019 Hi Pat, I am running VWX on Windows. Would that make a difference? The main thing I am interested in automating are actually all the steps before exporting to a DWG. Thanks Maxwell Quote Link to comment
Pat Stanford Posted April 26, 2019 Share Posted April 26, 2019 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. Quote Link to comment
MTRobin Posted April 26, 2019 Author Share Posted April 26, 2019 I would be ok with just saving a copy and letting Windows rename the file for me. Could you please help me with the Vector Script? I have never made a Vectorscript and this would be a great learning experience. Thanks 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.