Hidden to Layer - Script
-
See: http://www.sketchucation.com/forums/scf/viewtopic.php?p=47582#p47582 for v1.1...
This script Hidden2Layer.rb moves hidden active entities onto a layer called HIDN...
Usage: Put this file into the Plugins Folder.
Pick "Hidden to Layer" off Plugins Menu...
Any Hidden Active Entities are moved onto Layer HIDN
This means that any Hidden Model-based Geometry is moved,
BUT if you want to do Hidden Entities that are inside of
Groups or Component Definitions then you need to Edit them
so their Entities are then 'Active' and then on running
this tool they will be moved to HIDN...It's main use is that when you want to export to DWG or DXF for use in CAD packags the SUp based hidden geometry is on a special layer - HIDN - and can be frozen or switched-off so it's not visible...
-
TIG,
If you have time / if it's possible, could you please adjust your script as follows:-
Add your mining capability so that the script will drill down into Groups / Components to search for any Hidden Geometry.
-
Make the script work on Selected Geometry ie by default (if nothing is selected) then the script will work on the whole model, HOWEVER, if the user has some geometry selected - then it will only work on the selected items.
Your help as always much appreciated.
Regards
Howard Leslie -
-
Here's Hidden to Layer v1.2.
Usage: Put this file into the Plugins Folder.
To run on just a Selection pick something first...
Otherwise it works on the whole of the Model...
Pick "Hidden to Layer" off Plugins Menu...
Any Hidden Entities are moved to Layer HIDN***
Hidden Entities that are inside of Groups or Component Instance's
Definitions are moved too, if they are in Selected OR the whole
Model is processed...
Remove the # in front of soft/smooth options to include if desired.
It 'mines'...
See: http://www.sketchucation.com/forums/scf/viewtopic.php?p=48564#p48564
.
-
TIG,
Thanks for adjusting your script so quickly - after a quick test it seems to work fine.
...
Idea for a possible future enhancement (V1.3) ???
...
May need a dialog box with a check box / dropdown choice for users - incorporate unhide_all.rbCurrently V1.2 of the script moves all hidden objects to Layer HIDN - and they remain as Hidden objects.
If you run the script unhide_all.rb (Thank you Rick Wilson) - all previously Hidden objects are now visible. To hide them again, users can simply turn the Layer HIDN off - very useful.
Gives users more control over their hidden / revealed geometry.
...
You could give users the option to keep hidden objects as hidden objects or to unhide them when they run the hidden2layer script.
...
Thanks once again for V 1.2 - hugely appreciated.
Regards
Howard Leslie
Advertisement