sketchucation logo sketchucation
    • Login
    ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

    [Plugin] Dims/Text/2dText Visibility [dimvis.rb]

    Scheduled Pinned Locked Moved Plugins
    10 Posts 3 Posters 16.3k Views
    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

      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-2014, 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|2dText|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.
      1.6 Future-proofed 20131205
      1.7 Now also processes "2dText" [made in 2dTools]. 20141023
      http://sketchucation.com/resources/pluginstore?pln=dimsvis

      TIG

      1 Reply Last reply Reply Quote 0
      • JClementsJ Offline
        JClements
        last edited by

        Hi TIG, Happy New Year.

        I just tried this updated plugin. Running Windows7 and SU8.

        All but two options worked for me. The last two options to put text and dimensions into their own layers does not move the text nor the dimensions to their newly created layers IF they are associated with geometry INSIDE of a GROUP.

        Regards, John


        test.skp

        John | Illustrator | Beaverton, Oregon

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

          @jclements said:

          Hi TIG, Happy New Year.

          I just tried this updated plugin. Running Windows7 and SU8.

          All but two options worked for me. The last two options to put text and dimensions into their own layers does not move the text nor the dimensions to their newly created layers IF they are associated with geometry INSIDE of a GROUP.

          Regards, John

          I didn't test it - it's Defisto's tweaks... I'll revisit it... πŸ˜’

          TIG

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

            @jclements said:

            ...The last two options to put text and dimensions into their own layers does not move the text nor the dimensions to their newly created layers IF they are associated with geometry INSIDE of a GROUP...

            http://forums.sketchucation.com/viewtopic.php?p=298596#p298596 is the link to v1.3 which now has two types of dims/text isolate onto layer - on for 'active_entities' and the other for 'ALL entities'. So the first one only puts active text/dims onto their layers and the second moves ALL onto the layer even when inside groups or components... πŸ€“

            TIG

            1 Reply Last reply Reply Quote 0
            • JClementsJ Offline
              JClements
              last edited by

              πŸ˜„
              Works.
              Thank you, sir.

              John | Illustrator | Beaverton, Oregon

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

                Here's v1.4 http://forums.sketchucation.com/viewtopic.php?p=298596#p298596
                It's wrapped into a class for robustness and clash avoidance...

                TIG

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

                  Here's v1.5 http://forums.sketchucation.com/viewtopic.php?p=298596#p298596
                  Defisto has added options to delete Text|Dims|Text+Dims in a Selection|Model including those within Groups/Components...

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    SnowTiger
                    last edited by

                    Hi
                    Is it safe for me to assume that this plugin goes directly into SU's Plugins Folder ?

                    I have read this thread but didn't notice if:
                    a) any other plugins required ?
                    b) will this plugin work in either SU v7 and/or v8 ?

                    This looks like a great plugin and I can't wait to try it out.
                    Thanks very much for your efforts re: creating this plugin and for sharing it.
                    And thanks in advance for any further information regarding my questions above.

                    Chris Mowat aka SnowTiger
                    PS> Thanks also to Catamountain for sharing this link in the following Forum.
                    https://productforums.google.com/d/topic/sketchup/OIi5Vr2rDak/discussion

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

                      Just put a .rb file into your Plugins folder and restart Sketchup for it to auto-load.
                      This script needs no other scripts to run.
                      It should work in v7 or v8, but it'd probably work in v5 or v6 too - it is fairly simplistic...

                      TIG

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

                        There's an update to this Plugin in the PluginStore [user requested].
                        http://sketchucation.com/pluginstore?pln=dimsvis
                        v1.7 will now Hide|Show|Isolate[Layer]|Delete Selected|All Text|2dText|Dims
                        I.E. It now processes "2dText" which has been made with my 2dTools, just as can native Text and Dimensions...

                        TIG

                        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