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

    Help - Ruby to delete all faces w/o affecting edges?

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 5 Posters 536 Views 5 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
      ascook2
      last edited by

      Hi everybody,

      I realize how annoying it can be to answer "noob" questions, but I have been searching for a Ruby Script, and I also didn't find anything in a search of this forum.

      Basically, is there a ruby that can delete all faces, but leave all edges intact? (Simply making it a wire-frame model.) I have an incredibly complex model, and after wasting the last few hours manually deleting faces (pretty desperate, right?), I give up... There must be an easier way.

      None of my faces have any materials applied... I use a plug-in rendering engine to apply all materials. The closest script I could find deleted all faces that had materials applied in SU.

      Although I've been using Sketchup for two years, I've only recently dabbled in ruby scripts.

      I would greatly appreciate any help. Thanks!

      Adam

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

        Don't think you need a ruby to do it.

        Just turn off the edges (View-Edge Style-Display Edges), then select all the faces and delete them. Then display the edges again and you should be left with the wireframe only.

        1 Reply Last reply Reply Quote 0
        • M Offline
          Matt666
          last edited by

          Hi !

          @johnsenior1973 said:

          Just turn off the edges (View-Edge Style-Display Edges), then select all the faces and delete them. Then display the edges again and you should be left with the wireframe only.

          Your method works only if model is in just one level. But faces can also be inside components or groups (complex entities).

          Here is a script that deletes all faces in the model. 😉


          Menu plugins, "delete faces"

          Frenglish at its best !
          My scripts

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

            This may be a silly question, but why would you want to delete all the faces? Could you not just turn the model to wireframe mode? I'm curious about the application for such a ruby. Thanks for posting it Matt.
            Wyatt

            1 Reply Last reply Reply Quote 0
            • BurkhardB Offline
              Burkhard
              last edited by

              Take a look at Didiers side. There are scripts, deleting edges or faces. I' m not in the office so I can`t take a search for it.

              [http://www.ia-plus.de(http://www.ia-plus.de)]

              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