How to find text entry in sketchup file?
-
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!
-
This would be simple to do. You want to zoom in on the text entity only - or the container?
-
@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.
-
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...
- 0 or more previous regular expression
-
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.
-
@tig said:
[attachment=0:25y6e5on]<!-- ia0 -->findtext.rb<!-- ia0 -->[/attachment:25y6e5on]
...Thanks so much this works like charm!
I'm very happy! Thanks again! -
Version 1.1 now allows regex matching, get it here...
http://forums.sketchucation.com/viewtopic.php?p=240727#p240727
Advertisement