sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download

    [Plugin] ConsDeleteContext

    Scheduled Pinned Locked Moved Plugins
    8 Posts 4 Posters 10.9k Views 4 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

      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
      • CadFatherC Offline
        CadFather
        last edited by

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

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

          My thanks as well.

          John | Illustrator | Beaverton, Oregon

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

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

            TIG

            1 Reply Last reply Reply Quote 0
            • designerbursaD Offline
              designerbursa
              last edited by

              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
              • TIGT Offline
                TIG Moderator
                last edited by

                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
                • designerbursaD Offline
                  designerbursa
                  last edited by

                  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
                  • TIGT Offline
                    TIG Moderator
                    last edited by

                    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