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

    Plugins for Model Tidying Up

    Scheduled Pinned Locked Moved Plugins
    14 Posts 4 Posters 1.3k 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.
    • P Offline
      pmolsen
      last edited by

      It refers to cleanup of open-ended lines. Cleanup.rb does those I believe. I am talking about lines that are part of a closed loop.

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        It's easy enough to write a snippet that find short edges, either selects or deletes them. But what do you do next? if you remove that 0.0002 long edge segment then a face won't be created either.

        Have you tried RepairBrokenEdges ?

        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • P Offline
          pmolsen
          last edited by

          The main thing is really just to find them. I can use Clean.rb to remove stray lines but these are different. As you say it is necessary to fix them rather than just delete them.

          I cannot find repairbrokenedges.???

          1 Reply Last reply Reply Quote 0
          • thomthomT Offline
            thomthom
            last edited by

            @pmolsen said:

            I cannot find repairbrokenedges.???

            http://rhin.crai.archi.fr/RubyLibraryDepot/plugin_details.php?id=334

            It repair sets of edges that are co-linear.

            CleanUp does implement this feature, but I wonder if I have broken it somehow...

            Thomas Thomassen — SketchUp Monkey & Coding addict
            List of my plugins and link to the CookieWare fund

            1 Reply Last reply Reply Quote 0
            • thomthomT Offline
              thomthom
              last edited by

              You can try to use this one-liner (in the Ruby Console) to select all edges that are 0.001 inch or less (0.001 inch is SU's minimum precision.)

              model=Sketchup.active_model;sel=model.selection;sel.clear;model.active_entities.each{|e|sel.add(e)if e.is_a?(Sketchup::Edge) && e.length<=0.001}

              Thomas Thomassen — SketchUp Monkey & Coding addict
              List of my plugins and link to the CookieWare fund

              1 Reply Last reply Reply Quote 0
              • P Offline
                pmolsen
                last edited by

                @thomthom said:

                It repair sets of edges that are co-linear.

                CleanUp does implement this feature, but I wonder if I have broken it somehow...

                The problem is not with co-linear lines but ones that are not co-linear. Maybe something that CleanUp could check for and highlight rather than deleting.

                1 Reply Last reply Reply Quote 0
                • thomthomT Offline
                  thomthom
                  last edited by

                  @pmolsen said:

                  The problem is not with co-linear lines but ones that are not co-linear. Maybe something that CleanUp could check for and highlight rather than deleting.

                  I do have some plans for CleanUp3 what would give a list of issues in the model where one could choose to inspect (and autofix if possible.) Maybe a highlighter similar to Solid Inspector. But it'd not in the immediate future.

                  What about a revision of the one-liner I poster previously, but instead of selecting the edges it'd insert a text pointing to the edge?

                  Thomas Thomassen — SketchUp Monkey & Coding addict
                  List of my plugins and link to the CookieWare fund

                  1 Reply Last reply Reply Quote 0
                  • KrisidiousK Offline
                    Krisidious
                    last edited by

                    what about "loose to group"... would that not do what you want?

                    By: Kristoff Rand
                    Home DesignerUnique House Plans

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      pmolsen
                      last edited by

                      What do you mean loose to group?

                      1 Reply Last reply Reply Quote 0
                      • KrisidiousK Offline
                        Krisidious
                        last edited by

                        CLF_Loose2groups.rb

                        This Plugin will make groups of all your loose (ungrouped) geometry. It will not change existing groups or components.

                        favicon

                        (www.smustard.com)

                        By: Kristoff Rand
                        Home DesignerUnique House Plans

                        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