Peter Phillips Posted November 25, 2009 Share Posted November 25, 2009 Is there a shortcut to toggle the Vectorworks-Preferences-Display-"Zoom line thickness" mode on an off? It's something I often need to do, and doing it via the menus is tiresome. I have Vectorworks 2008 (for the Mac) Thanks Quote Link to comment
Christiaan Posted November 25, 2009 Share Posted November 25, 2009 (you might like to skip to the last paragraph first) Go to Tools > Scripts > Vectorscript Plugin Editor Click on New, type in Toggle Zoom Line Thickness, then click on OK. Click on Script, then paste in the code below. Procedure TogglePref; VAR PrefID:INTEGER; PrefStatus:BOOLEAN; BEGIN PrefID := 9; PrefStatus := GetPref(PrefID); SetPref(PrefID, NOT PrefStatus); Layer(GetLName(ActLayer)); END; Run(TogglePref); Click on Category and type in View. Click on Done. Now go to Tools > Workspaces > Workspace Editor, choose which workspace you want to edit, find script (under View), then drag it across to the right where you want it. You could add it to the View menu so you can activate it from the View menu bar, or you could add it to the Document and Object Contexts so you can activate it from a contextual menu (right-click). Or?what I do?forget the above, open the file you're working on, go to the Resource Browser and create a new Vectorscript, create a new Palette called 'View toggles', select it then click on Select, name the script Toggle Zoom Line Thickness, then paste the above code in. Now you have a little palette available at all times. Do this for your default template too. Quote Link to comment
Jonathan Pickup Posted November 25, 2009 Share Posted November 25, 2009 here is a web site that has several preference toggles: http://www.vectordepot.com/plug-ins/ often you find these are editable, and all you need to know it the number of the preference you want to toggle. these numbers are in the Vectorworks help Quote Link to comment
Benson Shaw Posted November 26, 2009 Share Posted November 26, 2009 Running scripts and accessing custom palettes may work well for this. But they have their own clicks and activation processes so are not always short cuts. Mousing through drop down menus is the worst for me, so I often turn to built in VW key commands: As you know, Zoom Line Thickness is in the Display tab of VW Prefs The key command to open the VW prefs is Cmd, (command and comma keys) This key command opens the VW prefs to previously active tab in the session. Press Cmd, Click the Display tab if necessary (Prefs will open in Display mode next access) Toggle the Zoom Press RETURN to exit the pref box. Now if the Pref window could stay open after a pref change, access would be one key (F3) via Expose'. Oh well. -B Quote Link to comment
Jonathan Pickup Posted November 26, 2009 Share Posted November 26, 2009 i added the scripts as commands to my right mouse click. so It's right mouse click, choose the preference and click. Quote Link to comment
Christiaan Posted November 26, 2009 Share Posted November 26, 2009 We used to have it in the contextual menus too. The advantage of putting it in a palette in one's default template is in offices with multiple seats. Makes it much simpler to manage. NNA should really include this view toggle (and Guides) by default in the contextual menus. That's the best place for it from the user's point of view. Quote Link to comment
VincentCuclair Posted November 26, 2009 Share Posted November 26, 2009 I have used this since VW12: put the attached file in the plug-ins folder, restart VW, go to your Workspace and add it there, personally I have a keyboard shortcut assigned to it so it is easy to toggle on and off. I have toggle color, toggle black background and toggle page boundary as well if you want? Quote Link to comment
Peter Phillips Posted December 10, 2009 Author Share Posted December 10, 2009 Thanks to everyone for your advice. There's quite a lot options for me to try. Quote Link to comment
Llama Architect Posted May 20, 2010 Share Posted May 20, 2010 That's a really useful plugin thanks very much. 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.