bwarch Posted November 4, 2004 Share Posted November 4, 2004 i frequently find myself switching the preferences on and off for zoom line thickness and black/white only. unfortunately, it's pretty cumbersome to get to these options. i was wondering if it's possible to assign key commands to items (such as these) that are found in the vectorworks + document prefence menus? -drew vw11.0.1 mac os10.3.5 Quote Link to comment
G-Pang Posted November 5, 2004 Share Posted November 5, 2004 U can try this.... For Line Thickness. Procedure ZoomlinePref; Begin; if GetPref(9) then SetPref(9,false) else SetPref(9,true) ; End; run(ZoomlinePref); For Line B&W. Procedure BWPref; Begin; if GetPref(10) then SetPref(10,false) else SetPref(10,true) ; End; run(BWPref); G-Pang [ 11-04-2004, 08:18 PM: Message edited by: G-Pang ] Quote Link to comment
Vectorworks, Inc Employee Andrew Bell@NV Posted November 5, 2004 Vectorworks, Inc Employee Share Posted November 5, 2004 You can do this pref toggling in a single line: SetPref(9, NOT GetPref(9)); You don't even need the Procedure/Begin/End/run stuff. You can easily make a script and assign it to a menu command, and then assign a keyboard shortcut to that command. Choose the menu command Organize->Scripts->VectorScript Plug-In Editor..., select "New..." from that dialog and make a new command, then after clicking OK select Script... and enter the script above. It'll be available in the Workspace Editor for adding to your workspace (look under Miscellaneous.) Quote Link to comment
bwarch Posted November 6, 2004 Author Share Posted November 6, 2004 thanks for your help. this helps alot.... -drew 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.