VincentCuclair Posted August 29, 2011 Share Posted August 29, 2011 Is there a quick way to invert a certain class visibility combination, ie all hidden to visible and all visible to hidden!? Quote Link to comment
Vectorworks, Inc Employee Matt Panzer Posted August 29, 2011 Vectorworks, Inc Employee Share Posted August 29, 2011 Hi Vincent, This script will do it. It will toggle all visible and invisible classes (except the "None" class) and it will leave grey classes grey. If you'd like to include the "None" class change the line: FOR i := 2 TO ClassNum DO BEGIN TO: FOR i := 1 TO ClassNum DO BEGIN --------------------------------------- PROCEDURE MAIN; CONST kVisible = 0; kHidden = -1; kGreyed = 2; VAR i : INTEGER; BEGIN FOR i := 2 TO ClassNum DO BEGIN CASE GetCVis(ClassList(i)) OF kVisible: HideClass(ClassList(i)); kHidden: ShowClass(ClassList(i)); kGreyed: {do nothing}; END; {CASE} END; END; RUN (MAIN); ----------------------------------------------- HTH, Quote Link to comment
VincentCuclair Posted August 30, 2011 Author Share Posted August 30, 2011 Great Matt thanks! Quote Link to comment
Vectorworks, Inc Employee Matt Panzer Posted August 30, 2011 Vectorworks, Inc Employee Share Posted August 30, 2011 You're welcome Vincent. Quote Link to comment
VincentCuclair Posted August 30, 2011 Author Share Posted August 30, 2011 I'm waiting for the next version of VWs then I'll upgrade to the corresponding CameraMatch :grin: Quote Link to comment
Vectorworks, Inc Employee Matt Panzer Posted August 31, 2011 Vectorworks, Inc Employee Share Posted August 31, 2011 Great! :-) If/when you do, I'd love to hear any comments you may have on it. Quote Link to comment
matteoluigi Posted August 31, 2020 Share Posted August 31, 2020 (edited) On 8/29/2011 at 5:25 PM, Matt Panzer said: ...still working on it.. -------------------------- PROCEDURE MAIN; CONST kVisible = 0; kHidden = -1; kGreyed = 2; VAR i : INTEGER; BEGIN FOR i := 2 TO ClassNum DO BEGIN CASE GetCVis(ClassList(i)) OF kVisible: HideClass(ClassList(i)); kHidden: ShowClass(ClassList(i)); kGreyed: {do nothing}; END; {CASE} END; END; RUN (MAIN); ----------------------------------------------- HTH, great thing, however, somethings not working in the script. What's wrong with the quoted script aheada? Edited August 31, 2020 by matteoluigi Quote Link to comment
matteoluigi Posted August 31, 2020 Share Posted August 31, 2020 On 8/29/2011 at 5:25 PM, Matt Panzer said: This script got it and works, thanks 🙂 1 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.