JRA-Vectorworks-CAD Posted October 1, 2018 Share Posted October 1, 2018 Is there anyway to update all worksheet in a file a bit like the " Update all viewports command" Do you know any tricks to make a VW worksheets updates smoother? Quote Link to comment
0 Boh Posted October 1, 2018 Share Posted October 1, 2018 In 2018 and poss earlier versions if you open a WS go to the file tab in the WS ( not the file tab in the main window). There is an option to update all WS. 1 Quote Link to comment
0 Andrew Davies Posted October 5, 2018 Share Posted October 5, 2018 Yep. I use that quite a bit. You can also right click the worksheet in the resource manager. Quote Link to comment
0 Steven Valenziano Posted January 14, 2021 Share Posted January 14, 2021 Is there a way to 'recalculate all worksheets' without double-clicking into a worksheet? Ideally it's a menu command that can be accessed via the 'Search Vectorworks' pseudo-command-line? Thanks in advance! Quote Link to comment
0 Pat Stanford Posted January 15, 2021 Share Posted January 15, 2021 Try this script. It should do what you want. Be careful, you could make a bunch of complicated WSs and it could take a very long time to recalculate them. You can make the script into a menu command you can add to your workspace using the directions in this thread. Procedure RecalcAllWS; {January 14, 2021} {©2021 Patrick Stanford pat@coviana.com} {Licensed under the GNU Lesser General Public License} {No Warranty Expressed of Implied. Use at your own risk.} {Recalculates all worksheets in the Resource Manager of the active} {file and redraws to update any that are On Drawing} Var H1: Handle; ResList, NumWS, WSIndex: LongInt; Begin ResList:=BuildResourceList(18, 0, '', NumWS); For WSIndex := 1 to NumWS do Begin H1:=GetResourceFromList(ResList,WSIndex); RecalculateWS(H1); End; RedrawAll; End; Run(RecalcAllWS); 1 Quote Link to comment
0 Bruce Kieffer Posted March 9, 2021 Share Posted March 9, 2021 Thanks for this script @PatStanford. It works great and is very helpful. I added it to my tools menu. Quote Link to comment
0 Pat Stanford Posted March 9, 2021 Share Posted March 9, 2021 What no keyboard shortcut!!!! All that work and you don't even think enough to give it a shortcut. Humph! ;-) Quote Link to comment
0 Bruce Kieffer Posted March 9, 2021 Share Posted March 9, 2021 1 minute ago, Pat Stanford said: What no keyboard shortcut!!!! All that work and you don't even think enough to give it a shortcut. Humph! 😉 You assume I would remember the shortcut. I won't! But I will remember where I put the command. Even so, I'm using the contextual menu now that I moved "Properties" up in the contextual menu and that moved Recalculate to the top of that menu. That is the easiest solution, granted it's not a recalculate all worksheets command. Quote Link to comment
0 Pat Stanford Posted March 9, 2021 Share Posted March 9, 2021 Now that you have it as a Menu command you should be able to add it to the contextual menu also. 1 Quote Link to comment
0 rbryanharrison Posted August 27, 2021 Share Posted August 27, 2021 I'd bake cookies for a version that recalculates only the active worksheet. I just want to hit a keyboard shortcut rather than endlessly choosing "File > Recalculate Active Worksheet." Quote Link to comment
0 Bruce Kieffer Posted August 27, 2021 Share Posted August 27, 2021 You can right click to get the contextual Manu and it should appear there. It does on my setup. Quote Link to comment
0 drelARCH Posted August 27, 2021 Share Posted August 27, 2021 6 hours ago, rbryanharrison said: I'd bake cookies for a version that recalculates only the active worksheet. I just want to hit a keyboard shortcut rather than endlessly choosing "File > Recalculate Active Worksheet." I would be very much interested in that one too. 6 hours ago, Bruce Kieffer said: You can right click to get the contextual Manu and it should appear there. It does on my setup. @Bruce Kieffer What I can see 'Recalculate' function update all worksheets not only selected one. And with many worksheet present in file it can take a while to update. Would really welcome quicker way to navigate to recalculate active worksheet function. Quote Link to comment
0 Bruce Kieffer Posted August 27, 2021 Share Posted August 27, 2021 (edited) @drelARCH Are you selecting the one worksheet and right clicking on it? Edited August 27, 2021 by Bruce Kieffer Quote Link to comment
0 drelARCH Posted August 27, 2021 Share Posted August 27, 2021 5 minutes ago, Bruce Kieffer said: @drelARCH Are you selecting the one worksheet and right clicking on it? Yes I am. You are right @Bruce Kieffer. After double checking it indeed recalculate only selected worksheet. I think I was initially confused by fact that 'recalculate' function takes much longer to update than 'update active worksheet' in worksheet menu. Quote Link to comment
0 DomC Posted September 17, 2022 Share Posted September 17, 2022 On 8/27/2021 at 3:47 AM, rbryanharrison said: I'd bake cookies for a version that recalculates only the active worksheet. I think right-click method is nearly as fast as shortcut but if theoretically someone is interested in the update-selected-script-variante. #DomC 2022-09-17 Use at your own risk #Recalculates selectes worksheets on the active layer. #Worksheets with the same names were also recalculated, even if #they are not on the same layer and/or are not selected selected_worsheets = [] def add_handle(h): selected_worsheets.append(h) vs.ForEachObjectInLayer(add_handle, 2, 1, 0) for worksheet_insctance_handle in selected_worsheets: sheet_resource_handle = vs.GetWSFromImage(worksheet_insctance_handle) vs.RecalculateWS(sheet_resource_handle) vs.ResetObject(worksheet_insctance_handle) Quote Link to comment
Question
JRA-Vectorworks-CAD
Is there anyway to update all worksheet in a file a bit like the " Update all viewports command"
Do you know any tricks to make a VW worksheets updates smoother?
Link to comment
14 answers to this question
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.