WhoCanDo Posted November 24, 2011 Share Posted November 24, 2011 Hi, What is the VectorScript proceedure to toggle the "Document Preferences/Display/Use layer colors" on and off? Quote Link to comment
MullinRJ Posted November 24, 2011 Share Posted November 24, 2011 The Use Layer Color pref constant is 11. A list of constants can be found in the VectorScript Function Reference Appendix. The following one line script can be used to toggle the Use Layer Color preference: SetPref(11, not GetPref(11)); Raymond Quote Link to comment
WhoCanDo Posted November 24, 2011 Author Share Posted November 24, 2011 Thanks Raymond, I was looking for something like SetLayerColorToggle but that's too sensible. Regards Quote Link to comment
MullinRJ Posted November 24, 2011 Share Posted November 24, 2011 Nearly 2 years ago I posted a PDF of an annotated VW Pref Constants to the Techboard. It's not a complete listing of all preferences, but it has all of the VW prefs that you can set from the VW Preferences Dialog. Document Prefs and Unified View Prefs windows can be found in the second posting in the following thread. Of course, some new settings may have been added since then, but not too many have been. You can find the PDF files here: VW Preference Constants HTH, Raymond Quote Link to comment
JBenghiat Posted November 24, 2011 Share Posted November 24, 2011 Indeed, the presence constants aren't all documented in the function reference. If you want the most up to date and comprehensive list, download the SDK and look at the MiniCADCallbacks file. It's actually fairly well commented. -Josh 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.