VectorGeek Posted September 27, 2007 Share Posted September 27, 2007 Scripters beware of a change to VW2008 that required a number of our scripts to be changed: In '08, the "Fit to Window" command has been renamed "Fit to Page Area". Therefore, any DoMenuTextByName() calls will generate an error. Although the new name makes sense, changing names does cause some pain for those of us who have developed extensive scripting solutions. Also, in the "Designer" workspace, the long-standing shortcut for this command (Ctrl-4, Cmd-4) has not been assigned. This is an inconsistency between workspaces and should be fixed for a maintenance release. Quote Link to comment
Vectorworks, Inc Employee Bruce Ferguson Posted October 4, 2007 Vectorworks, Inc Employee Share Posted October 4, 2007 This will be fixed for a maintenance release. So if you fix any scripts in the meantime, changing "Fit to Window" to "Fit to Page Area", you will have to change it back to "Fit to Window" after you get the maintenance release with this fix. Quote Link to comment
VectorGeek Posted October 4, 2007 Author Share Posted October 4, 2007 Arghhhh. = Quote Link to comment
Pat Stanford Posted October 4, 2007 Share Posted October 4, 2007 How about a slightly longer routine that will do the check for you? Procedure Test; Begin If VerifyLibraryRoutine('Fit to Window') then DoMenuTextByName('Fit to Window',0) Else DoMenuTextByName('Fit to Page Area',0); End; Run(Test); Pat Quote Link to comment
VectorGeek Posted October 5, 2007 Author Share Posted October 5, 2007 Sweet! - or I wait until the maintenance release and do nuttin... Thanks Pat. V-G-E-E-K 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.