sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Hidden to Layer - Script

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 2 Posters 888 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • TIGT Offline
      TIG Moderator
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H Offline
        Howard leslie
        last edited by

        TIG,
        If you have time / if it's possible, could you please adjust your script as follows:

        1. Add your mining capability so that the script will drill down into Groups / Components to search for any Hidden Geometry.

        2. 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

        1 Reply Last reply Reply Quote 0
        • TIGT Offline
          TIG Moderator
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • H Offline
            Howard leslie
            last edited by

            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.rb

            Currently 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

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement