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

    Request: modifiy DelConLInesOnly.rb DelConPointsOnly.rb :?:

    Scheduled Pinned Locked Moved Developers' Forum
    9 Posts 3 Posters 519 Views 3 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.
    • JClementsJ Offline
      JClements
      last edited by

      TIG:

      I was wondering if there could be varient to these two scripts, each with 4 options:

      Perhaps in a menu similar to SU's Intersect.

      1a- if nothing selected, all would be deleted, excluding any within groups or compontents after a prompt of "Are you sure".
      1b- if nothing selected, all in the would be deleted, including any groups or compontents and their subgroups or subcomponents (absolutely every occurence in the model) after a prompt of "Are you sure".
      2a- if somehthing is selected and then all within the immediate group or component level (not within subgroups or subcomponents)
      2b- if somehthing is selected and then all within selection AND within its subgroups or subcomponents would be deleted.

      Regards, John

      John | Illustrator | Beaverton, Oregon

      1 Reply Last reply Reply Quote 0
      • W Offline
        watkins
        last edited by

        Dear John,

        I would find this very useful too. I habitually use cpoints for assembling mechanical parts, and so it would be nice to be selective about cleaning up. Ideally, a new alignment point/feature that had its own deletion command would be nice.

        Kind regards,
        Bob

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

          I'll see what I can do. If anyone beats me to it I won't feel bad !
          [EDIT]Here it is...http://www.sketchucation.com/forums/scf/viewtopic.php?p=100581#p100581

          .

          TIG

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

            Thanks. πŸ˜„

            I imagine the code for determining the what to do, depending upon what or what isn't selected, could be useful for other scripts as well.

            John | Illustrator | Beaverton, Oregon

            1 Reply Last reply Reply Quote 0
            • W Offline
              watkins
              last edited by

              Dear TIG,

              Many thanks for making the modifications. I use cpoints a lot for aligning and assembling components, and I occasionally forget myself and delete both construction lines and points. The new options are just the ticket.

              I have attached a simple collar clamp to show you how I use cpoints to align parts

              Kind regards,
              Bob


              KF40 Clamping collar.skp

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

                Thank you, TIG!

                Regards, John

                John | Illustrator | Beaverton, Oregon

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

                  TIG,

                  Can you try running this test file, please.

                  Using the selection method, the script does "dig" down to sublevel; however, it has to be run more than once in order to get everything. Can there by sometype of loop that searches, deletes, and tests to see if their are more occurances and repeats itself until the test is null?


                  Test of Delete Construction Objects Test.skp

                  John | Illustrator | Beaverton, Oregon

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

                    @jclements said:

                    TIG,

                    Can you try running this test file, please.

                    Using the selection method, the script does "dig" down to sublevel; however, it has to be run more than once in order to get everything. Can there by sometype of loop that searches, deletes, and tests to see if their are more occurances and repeats itself until the test is null?

                    This should fix the problem...
                    http://www.sketchucation.com/forums/scf/viewtopic.php?p=100817#p100817

                    .

                    TIG

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

                      πŸ˜„

                      Thanks.

                      John | Illustrator | Beaverton, Oregon

                      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