This is a version or my golden-oldie 'dimsvis.rb' that Defisto has recently reworked to have several more functions, a proper menu etc... and which I then further updated and re-streamlined...
It adds a new sub-menu to View with items to toggle the visibility of Dims and Text - both separately and together, and also isolate Dims and Text onto their own layers in one step... The current settings are now remembered with the saved model as attributes as simple on/off toggles... as of v1.3 layering of Dims/Text can be limited to active_entities or to ALL...
Copyright 2009-2011, TIG & Defisto
Permission to use, copy, modify, and distribute this software for
any purpose and without fee is hereby granted, provided the above
copyright notice appear in all copies.
THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#--------------------------------------------------------------------------
Name : dimsvis.rb
Description : Toggles dimensions on/off [hidden/shown]
Menu Item : View -> "Show|Hide|Isolate Text|Dims"
Can be shortcut keyed for ease of use...
Author : TIG & Defisto
Usage : Pick off sub-menu items...
ALL dimensions/text are either be shown or hidden [including
those inside groups/components].
The 'isolate' onto a special layer for dims/text can be
applied to either dims/text in the 'active_entities' OR to
'all' [which will include those inside groups/components].
Note: if the number of dims/text entities found and the
number put onto the layer are not the same it will be because
some of them are already on that layer.
It is one step undo-able...
Version : 1.0 First draft. 20090404
1.1 Undo added. Mining groups/definitions. 20090405
1.2 Several 'Defisto led' changes including text, layers, menu
etc. Toggle now saved with model [by TIG].
Idioms fixes and some .typename > .class tests [by TIG]
20110105
1.3 New option for ALL Text/Dims to get layered within groups
etc [TIG] 20110105
1.4 Wrapped in a TIG_DEFISTO_DIMVIS class [TIG] 20110116
1.5 New Options added by Defisto & minor adjustments by TIG.
20110212 Tools support Groups/Components =
- Delete Text: In the Selection/Model.
- Delete Dimensions: In the Selection/Model.
- Delete Text AND Dimensions: In the Selection/Model.
###


