sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Regex selection filter?

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 275 Views 2 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.
    • thomthomT Offline
      thomthom
      last edited by

      Does any plugin exist which allows you to select group/components by their Group/Definition Name and/or name using a regex pattern?

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

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

        Don't know, but wouldn't be a difficult thing:

        # get the input
        # ...
        r = Regexp.new input
        # iterate over the elements
        #   checking name
        #   adding to selection, if name fits
        

        azuby

        *error initus :: Blocks | CurrentDate | d/Code | extensionmanager | FFlipper | HideEdges | MeasuredArea | ModelHistory | PluginsHelp | PronButton | SAWSO | SCP | SU²CATT

        Bad English? PM me, correct me. :smile:**

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

          Yea, it'd be a simple loop. Just wasn't sure if there was a plugin out there already.
          If not I'll add one to my selection plugin.

          Found the use for it today when I imported a revit model using the DWG format. There's no material applied so I have to add that manually. But I noticed that similar element had the same name prefix followed by a number. So I figured I could greatly speed up the process of adding materials by doing a regex selection.

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

          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