• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

Regex selection filter?

Scheduled Pinned Locked Moved Developers' Forum
3 Posts 2 Posters 262 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.
  • T Offline
    thomthom
    last edited by 12 Jan 2009, 12:18

    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 12 Jan 2009, 12:28

      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
      • T Offline
        thomthom
        last edited by 12 Jan 2009, 12:38

        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
        1 / 1
        • First post
          1/3
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement