• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

How to find text entry in sketchup file?

Scheduled Pinned Locked Moved Plugins
7 Posts 4 Posters 739 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.
  • G Offline
    gastons.tiltins
    last edited by 19 Apr 2010, 17:34

    Hi,

    I'm sorry for distrubing here, but I tough maybe there exist plugin which can help to solve my problem.

    When i draw objects in file i add text note to them.
    It is important for me to indentify object by text (usualy 2-5 words). Like i have 1000 similar cubes and each has unique name.

    When i have lot of objects with text it is very difficult to zoom to every text entry and read it to find exactly one cube i need. I would then need to pan/zoom like several dozen or even hundred times.

    I'm looking for a possibility to find text entry by pattern. Like find text command in AutoCAD, which finds text and zoom to it it there is any.

    Could you please help me with solution if possible for this matter.

    Thanks in advance!

    1 Reply Last reply Reply Quote 0
    • T Offline
      thomthom
      last edited by 19 Apr 2010, 20:37

      This would be simple to do. You want to zoom in on the text entity only - or the container?

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

      1 Reply Last reply Reply Quote 0
      • G Offline
        gastons.tiltins
        last edited by 19 Apr 2010, 23:39

        @thomthom said:

        This would be simple to do. You want to zoom in on the text entity only - or the container?

        Text entry would be enough since it is very near the object.

        1 Reply Last reply Reply Quote 0
        • T Offline
          TIG Moderator
          last edited by 20 Apr 2010, 11:22

          Put into Plugins folder...### (c) TIG 2010
          Usage:
          Works on a Selection, or if there is none then the Model Entities.
          Type into Ruby Console + <Enter>:
          findtext 'text'
          OR
          findtext 'text', true
          IF ANY 2nd argument REGEX wildcard matching applies, as follows:
          ABC matches ABCDEF & XYZABCDEF, but not 123AB-CDEF
          ^ beginning of a line or string e.g. ^A matches ABC not BAC
          $ end of a line or string e.g. A$ matches CBA not BAC
          . any character (except newline) e.g. A.C matches ABC not ACC

          any single character of the set e.g. [A-Zb-z] matches AbZ not ab9

          also

          • 0 or more previous regular expression
            *? 0 or more previous regular expression(non-greedy)
            ? 0 or 1 previous regular expression
          • 1 or more previous regular expression
            +? 1 or more previous regular expression(non-greedy)
            | alternation =
            \w any character ==[0-9A-Za-z_]
            \W non-word character
            \s whitespace character[\t\n\r\f] - tab/newline/return/formfeed
            \S non-whitespace character
            \d digit ==[0-9]
            \D non-digit
            \A beginning of a string
            \Z end of a string, or before newline at the end
            \z end of a string
            \b word boundary (outside[ ]only)
            \B non-word boundary
            \b backspace(0x08) (inside[ ]only)
            {m,n} at least m, but most n previous regular expression
            {m,n}? at least m, but most n previous regular expression(non-greedy)
            ............ see full Ruby Regex for more examples.....

          Version:
          1.1 20100422 Regex 'matching' added.

          It highlights and zooms to those matching text-entities or instances with text-entities in them - it also reports what's found in the Ruby Console...
          🤓

          TIG

          1 Reply Last reply Reply Quote 0
          • J Offline
            Jim
            last edited by 20 Apr 2010, 11:37

            If you are using are using Groups and Components, you can name the Groups and ComponentInstances instead of using text to label them, and then use the Outliner dialog to filter the names.

            Hi

            1 Reply Last reply Reply Quote 0
            • G Offline
              gastons.tiltins
              last edited by 20 Apr 2010, 17:46

              @tig said:

              [attachment=0:25y6e5on]<!-- ia0 -->findtext.rb<!-- ia0 -->[/attachment:25y6e5on]
              ...

              Thanks so much this works like charm!
              I'm very happy! Thanks again!

              1 Reply Last reply Reply Quote 0
              • T Offline
                TIG Moderator
                last edited by 22 Apr 2010, 21:43

                Version 1.1 now allows regex matching, get it here...
                http://forums.sketchucation.com/viewtopic.php?p=240727#p240727
                🤓

                TIG

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                1 / 1
                • First post
                  7/7
                  Last post
                Buy SketchPlus
                Buy SUbD
                Buy WrapR
                Buy eBook
                Buy Modelur
                Buy Vertex Tools
                Buy SketchCuisine
                Buy FormFonts

                Advertisement