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

    How to remove unnecessary points on a line?

    Scheduled Pinned Locked Moved Newbie Forum
    sketchup
    8 Posts 4 Posters 5.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.
    • A Offline
      alienship
      last edited by

      Hi,

      When I draw a floor-plan with sketch up Pro. I landed with straight lines with multiple segments. It become difficult if I want to read the length via entity info. Is there a way to remove the unnecessary points along the line?

      Thank You for any help.

      Paul

      1 Reply Last reply Reply Quote 0
      • GaieusG Offline
        Gaieus
        last edited by

        Hi Paul,

        The proper way would be to draw small lines from these endpoints (doesn't matter where) and then delete this new line. The original will be "healed".

        Then you could use a plugin called "simplify contours" (bottom of the page here) and when it asks for the degree the two edges meet, enter 180 for coliear edges. It will create an curve entity but if you explode this curve, you end up with a single line entity.

        Another nifty plugin (for a "dirty" job here but very useful in other cases) is Weld.rb from Smustard. It will also weld these line segments into a curve but when you explode this, they regain their segmentation.

        Now if your lines are not totally colinear, the first method won't work at all but you can use either plugins - just don't explode the polyline/curve at the end.

        Gai...

        1 Reply Last reply Reply Quote 0
        • A Offline
          alienship
          last edited by

          Hi Gai,

          Thank you for your assistance. I tested both the Plug ins and both work as expected.

          Best Regards,

          Paul

          1 Reply Last reply Reply Quote 0
          • GaieusG Offline
            Gaieus
            last edited by

            Paul, as I wrote, both will only convert these edges into polylines. The simplify contours one will however remove the endpoints, too, and with coliear edges, after you explode them, you end up with "pure" edges.

            If you use the weld.rb for this, you may end up with a face you cannot PushPull.

            Gai...

            1 Reply Last reply Reply Quote 0
            • J Offline
              Jim
              last edited by

              And also there is the repair broken lines plugin:

              http://www.crai.archi.fr/RubyLibraryDepot/Ruby/repair_broken_lines.rb

              Should be a standard on everyone's system.

              Hi

              1 Reply Last reply Reply Quote 0
              • N Offline
                NewOne
                last edited by

                @jim said:

                And also there is the repair broken lines plugin:

                http://www.crai.archi.fr/RubyLibraryDepot/Ruby/repair_broken_lines.rb

                Should be a standard on everyone's system.

                What exactly this plugin does? What is broken to a line? 😒

                1 Reply Last reply Reply Quote 0
                • J Offline
                  Jim
                  last edited by

                  It "heals" edges.


                  Untitled.jpg

                  Hi

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    alienship
                    last edited by

                    @jim said:

                    And also there is the repair broken lines plugin:

                    http://www.crai.archi.fr/RubyLibraryDepot/Ruby/repair_broken_lines.rb

                    Should be a standard on everyone's system.

                    Hi Jim,

                    Thank you for your post. The repair broken lines is the ultimate solution. Hope the developer can make it a contextual menu and let it show up as a right click option. Thank you very much.

                    Regards,

                    Paul

                    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