• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[Plugin] ConsDeleteContext

Scheduled Pinned Locked Moved Plugins
8 Posts 4 Posters 10.8k 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.
  • T Offline
    TIG Moderator
    last edited by 19 Oct 2008, 20:29

    Name : ConsDeleteContext
    Author : TIG
    Usage : Deletes or Layers Guide-Lines or Guide-Points or Both:
    accessed through the Context-menu/submenu:
    it either deletes/layers 'All Active' or 'All in Selection/ALL' -
    mining down into any selected groups/components...
    If you pick a 'Selection' option BUT without anything selected then
    ALL 'model entities' are processed! [Note: a context-menu will still
    appear with NO selection, if the cursor is over an axis etc...]
    It's one step un-doable [or two steps if Both Lines/Points option]...
    https://sketchucation.com/pluginstore?pln=ConsDeleteContext

    TIG

    1 Reply Last reply Reply Quote 0
    • C Offline
      CadFather
      last edited by 20 Oct 2008, 15:59

      ..just to say thanks TIG! πŸ˜„

      1 Reply Last reply Reply Quote 0
      • J Offline
        JClements
        last edited by 20 Oct 2008, 17:10

        My thanks as well.

        John | Illustrator | Beaverton, Oregon

        1 Reply Last reply Reply Quote 0
        • T Offline
          TIG Moderator
          last edited by 10 Jul 2011, 12:44

          Here's v2.0 http://forums.sketchucation.com/viewtopic.php?p=100581#p100581

          TIG

          1 Reply Last reply Reply Quote 0
          • D Offline
            designerbursa
            last edited by 22 May 2019, 19:32

            Moving points to layer did not work. The plugin's code needs to be edited as follows! ..
            old code
            def self.layerAllGpoints()
            model = Sketchup.active_model
            entities = model.active_entities
            model.start_operation("layer active Gpoints")
            model.layers.add("CPOINTS")
            entities.to_a.each{|entity|e.layer="CPOINTS" if e.valid? and e.class==Sketchup::ConstructionPoint}
            model.commit_operation
            end

            new code

            def self.layerAllGpoints()
            model = Sketchup.active_model
            entities = model.active_entities
            model.start_operation("layer active Gpoints")
            model.layers.add("CPOINTS")
            entities.to_a.each{|e|e.layer="CPOINTS" if e.valid? and e.class==Sketchup::ConstructionPoint}
            model.commit_operation
            end

            1 Reply Last reply Reply Quote 0
            • T Offline
              TIG Moderator
              last edited by 23 May 2019, 15:38

              Thanks, this code is almost 8 years old !
              No one has spotted that typo before - well done...

              A more 'modern' fix for the wayward line might be:

              entities.grep(Sketchup;;ConstructionPoint).each{|e|e.layer=model.layers.add("CPOINTS")}
              

              Avoiding the need to first make the layer at all !

              TIG

              1 Reply Last reply Reply Quote 0
              • D Offline
                designerbursa
                last edited by 24 May 2019, 10:34

                I was very happy if I could help. I'm waiting for you to update the plugin πŸ˜„ thanks TIG πŸ‘

                1 Reply Last reply Reply Quote 0
                • T Offline
                  TIG Moderator
                  last edited by 24 May 2019, 12:58

                  I've corrected the RB file previously found in the first post - https://sketchucation.com/forums/viewtopic.php?p=100581#p100581
                  I've republished its RBZ in the PluginStore as v2.1
                  https://sketchucation.com/pluginstore?pln=ConsDeleteContext

                  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