Protect style from unhide all

 From:  Michael Gibson
9677.2 In reply to 9677.1 
Hi Andre, re:

> It would be nice if there was a checkbox in the "Edit style" dialog like "Protect from 'Unhide all'" which,
> when enabled, causes this particular style not to be unhidden when I unhide all objects.

I can see how that would be useful, but the general thing that I don't like about these kinds of special override modes is it can lead to great confusion when someone else is trying to look at your file.

How about a script that you could set up on a shortcut key that will do a "Show all except Style=Archive" when you push the shortcut key, would that help?

If so give this one a try:

script: /* Show all except Style=Archive */ var index = -1; var style = moi.geometryDatabase.findStyle( 'Archive' ); if ( style ) index = style.index; var objs = moi.geometryDatabase.getObjects(); for ( var i = 0; i < objs.length; ++i ) { var obj = objs.item(i); if ( obj.hidden && obj.styleIndex != index ) { obj.hidden = false; obj.getSubObjects().setProperty( 'hidden', false ); obj.selected = true; } }

- Michael