Jump to content

Recommended Posts

Posted

Whats the best way to find text in a drawing with out have to read everything ? is there some kind of fillter like spell check.

eg say i want to find text sf-1 but dont know where its is heres what i think it would look like

 

Defun c: search

 

 

heres what my block objects are

 

 

 
BLOCK REFERENCE  Layer: "DIM"
                           Space: Model space
                  Handle = 80fbb
      Block Name: "tag"
               at point, X=937'-1 1/2"  Y=603'-4 3/4"  Z=    0'-0"
  X scale factor:    -9.600
  Y scale factor:     9.600
  rotation angle: 180.00
  Z scale factor:     9.600
 Scale uniformly: No
 Allow exploding: Yes
                 ATTRIBUTE  Layer: "0"
                           Space: Model space
                  Color: 4 (cyan)    Linetype: "BYLAYER"
                  Handle = 80fbc
            Style = "NTR"
       Annotative: No
            Typeface = Times New Roman
            start point, X=937'-1 1/4"  Y=  602'-4"  Z=    0'-0"

Posted

If you like to find the text in an open drawing you can always tryout the 'FIND' command and search SF-1. you can zoom to it when acad has found something.

Posted

1. Pre-select (grip) all objects in the drawing ("zoom to" only works when you do this)

2. FIND command - Find and replace dialog box should appear

3. Enter the string you're looking for

4. Click "Find" - "Zoom to" should become available

5. Click "Zoom to" to get to the string location

Posted

As you posted this in the Customisation Forum, perhaps a LISP is in order...

 

(defun c:txtfind (/ tVal ss)
 (and (setq tVal (getstring t "\nSpecify String to Search for >  ")
        ss (ssget "X" (list (cons 0 "TEXT,MTEXT")(cons 1 tVal)
         (if (getvar "CTAB")
           (cons 410 (getvar "CTAB"))
           (cons 67 (- 1 (getvar "TILEMODE")))))))
      (sssetfirst nil ss))
 (princ))

Posted

I'm curious as to why you are using (cons 67 (- 1 (getvar "TILEMODE")))

when (cons 410 (getvar "CTAB")) i all that is needed.

Posted
I'm curious as to why you are using (cons 67 (- 1 (getvar "TILEMODE")))

when (cons 410 (getvar "CTAB")) i all that is needed.

 

I was given advice from David Bethel to use the coding that included the TILEMODE variable as it accounts for ACAD versions that don't have the CTAB system variable.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...