sketchucation logo sketchucation
    • Login
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Request

    Scheduled Pinned Locked Moved Plugins
    4 Posts 3 Posters 375 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.
    • J Offline
      JuanV.Soler
      last edited by

      I am looking for a plugin able to erase perpendicular lines that have a height different to 0
      as well as another one able to drop parallel lines to z = 0
      all inside a group
      is it possible ?
      Thanks in advance 😄


      request.JPG

      ,))),

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

        If you want to remove just lines that have ends at different heights then use something like

        m=Sketchup.active_model;s=m.selection.to_a;s.each{|e|next if e.class!="Sketchup;;Edge"; e.erase! if e.start.position.z!=e.end.position.z}
        

        To erase all 'level' lines that are not at z=0

        m=Sketchup.active_model;s=m.selection.to_a;s.each{|e|next if not e.class!="Sketchup;;Edge"; e.erase! if e.start.position.z!=e.end.position.z and e.end.position.z!=0}
        

        To 'flatten' lines so they are level... is more complicated as you need to transform the end_vertex.z to match the start_vertex.z of the line etc... 😕

        TIG

        1 Reply Last reply Reply Quote 0
        • srxS Offline
          srx
          last edited by

          ThomThom Plan tools

          www.saurus.rs

          1 Reply Last reply Reply Quote 0
          • J Offline
            JuanV.Soler
            last edited by

            Thanks TIG and srx
            I will see if I can manage 👍

            ,))),

            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