Jump to content

commands for zoom line thickness + b/w only


Recommended Posts

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

Link to comment

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 ]

Link to comment
  • Vectorworks, Inc Employee

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.)

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...