JONTHEPOPE Posted February 3, 2009 Posted February 3, 2009 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" Quote
Attila The Gel Posted February 3, 2009 Posted February 3, 2009 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. Quote
uddfl Posted February 3, 2009 Posted February 3, 2009 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 Quote
uddfl Posted February 3, 2009 Posted February 3, 2009 By the way, I just read somewhere that the "zoom to" option was not included initially on ACAD 2009, and that you have to make sure you have installed Update 1 to correct this bug: http://usa.autodesk.com/adsk/servlet/ps/dl/item?siteID=123112&id=11581572&linkID=9240618 Quote
Lee Mac Posted February 3, 2009 Posted February 3, 2009 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)) Quote
CAB Posted February 4, 2009 Posted February 4, 2009 I'm curious as to why you are using (cons 67 (- 1 (getvar "TILEMODE"))) when (cons 410 (getvar "CTAB")) i all that is needed. Quote
Lee Mac Posted February 4, 2009 Posted February 4, 2009 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. Quote
Recommended Posts
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.