Jump to content

Invert visibility?


Recommended Posts

  • Vectorworks, Inc Employee

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,

Link to comment
  • 9 years later...
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 by matteoluigi
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...