Mat Caird Posted August 30, 2002 Share Posted August 30, 2002 Hi Is there a quick way to toggle "zoom lineweights"? Thanks in advance Quote Link to comment
ionw Posted August 30, 2002 Share Posted August 30, 2002 This script will do it. Make it a plugin and add it to your work space and assign it a keystroke. PROCEDURE BwOff;VAR result:BOOLEAN; BEGIN result := GetPref(10); IF result = TRUE THEN SetPref(10,FALSE); IF result = FALSE THEN SetPref(10,TRUE); END;Run(BwOff); Quote Link to comment
MullinRJ Posted August 31, 2002 Share Posted August 31, 2002 You can do it with one line of code: SetPref(9, not GetPref(9)); This sets the preference to the opposite of its current state. I place it in a script palette with the name ZLT (for Zero Line Thickness), but you can do as IONW suggests, <<Make it a plugin and add it to your work space and assign it a keystroke. >> This can be done with any of the boolean preferences. You just need the number of the pref which you cn get from the Appendix of the VS Function Reference. HTH,Raymond PS - Pref 10 that IONW mentions is for toggling B&W display. [ 08-30-2002: Message edited by: MullinRJ ] Quote Link to comment
Dan Kessler Posted August 31, 2002 Share Posted August 31, 2002 I came across this web site with some helpful plug-ins: http://radio.weblogs.com/0100275/stories/stories/2002/05/30/vectorworksPlugins.html Dan Quote Link to comment
Mat Caird Posted September 1, 2002 Author Share Posted September 1, 2002 Thanks everyone! Quote Link to comment
ionw Posted September 1, 2002 Share Posted September 1, 2002 Thank you Raymond, my apologies to Mat Caird, and any others that were confused, I simply went to the wrong script. I have them set up for my most often accessed prefs so there are 6 or more scripts for me to choose from. Also thanks for the concise method of toggling that pref. I enjoy condensed programming. I just wish there was more information on exactly how the script language works and interacts. I am reasonably proficient in C and C++, but never worked much in Pascal. I am going to go shorten all my toggles. My only other recomendation is that if you add it to your workspace instead of the command palette, then it is available in all documents, past present and future without having to import the script. 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.