Text search in R14 file

Discussion in 'AutoCAD' started by John Callaway, Jan 18, 2007.

  1. Is there a way I can search for a specific text within an opened Acad
    R14 file? Maybe a lisp routine?


    JPC
     
    John Callaway, Jan 18, 2007
    #1
  2. Do you need a selection set including all these text entities or do you want
    to zoom to this text or do you want to replace this text or what ...?

    Juergen
     
    Jürgen Palme, Jan 18, 2007
    #2
  3. Jurgen,
    What I would like to be able to do is to zoom to the text.

    JPC
     
    John Callaway, Jan 23, 2007
    #3
  4. That'll take a lisp. The text searching function will be pretty simple, and
    I've got a routine on my site called "check4square" (wonder what it does?)
    that has the zooming part of the code in it that you can pilfer.
     
    Michael Bulatovich, Jan 23, 2007
    #4
  5. Michael,
    I am a novice. I remember using lisp routine years ago. I have
    forgotten what little I knew. I copied your chech4square lisp to word
    since it was to big for notepad. What extension do I need on the file
    and then how do I compile it into a routine? Also I remember loading a
    file into the Acad directory so I could run my routines from the
    command line in an earlier version. Last how do I change your
    check4square routine so I can zoom to a particular text which will
    usually be a sequence of numbers in a character format.


    JPC
     
    John Callaway, Jan 23, 2007
    #5
  6. You don't have to. Autocad will run it as is.
    In old versions it was acad.lsp You should look in the help on running
    lisps.
    That's the $64 question. I haven't got time to do it for you, but you would
    have to sub out the section of code that looks for lines that aren't square
    for a chunk of code that tests for the content of text entities matching
    your parameters. If I were you I'd have the routine require the user to
    enter the text sought, so you can use it for other stuff later.

    Maybe with some luck you can find another routine that looks for text, and
    mash them together.
     
    Michael Bulatovich, Jan 23, 2007
    #6
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.