I'm new to AutoLISP, how do you....

Discussion in 'AutoCAD' started by spectrefish, Jun 11, 2004.

  1. spectrefish

    spectrefish Guest

    How do I turn a .txt file into an .lsp file?
     
    spectrefish, Jun 11, 2004
    #1
  2. spectrefish

    Servo Guest

    rename the file or "Save as"

    --
    Servo

    "Shop smart! Shop S-Mart!"

    tservo100 at
    ameritech dot net

    Slow, fiery death to all spammers!
     
    Servo, Jun 11, 2004
    #2
  3. spectrefish

    BillZ Guest

    A lsp file is a txt file.
    When you write an autolisp file in a text editor, you just save it as .lsp so autocad recognizes it as a lisp.

    Bill
     
    BillZ, Jun 11, 2004
    #3
  4. spectrefish

    Rudy Tovar Guest

    Just rename the extension of the .txt file to .lsp file.
    --

    AUTODESK
    Authorized Developer
    http://www.Cadentity.com
    MASi
     
    Rudy Tovar, Jun 11, 2004
    #4
  5. spectrefish

    spectrefish Guest

    That is the part I seem to be having trouble with, I am just using notepad as a text editor and I can't select file, save as, and pick .lsp as a file type.

    Is there a certain way to save it as a .lsp so AutoCAD recognizes it? Am I overlooking some obvious step?

    Thanks
     
    spectrefish, Jun 11, 2004
    #5
  6. spectrefish

    David Kozina Guest

    One way (out of about a bazillion)
    In Windows Explorer, select the file and hit F2, then change the extension
    as mentioned earlier.


    as a text editor and I can't select file, save as, and pick .lsp as a file
    type.
    I overlooking some obvious step?
     
    David Kozina, Jun 11, 2004
    #6
  7. spectrefish

    Servo Guest

    Save the file, close out of notepad and rename the file from file.txt to
    file.lsp

    --
    Servo

    "Shop smart! Shop S-Mart!"

    tservo100 at
    ameritech dot net

    Slow, fiery death to all spammers!
     
    Servo, Jun 11, 2004
    #7
  8. spectrefish

    ECCAD Guest

    In notepad, do a 'saveas'..where the filename 'Untitled' shows up, just overstrike and type in the filename.lsp
    (note addition of the . and lsp)
    You can verify the resultant file name using Explorer.
    To 'edit' the filename.lsp - with Notepad, pull down the list box of filetypes, and select "All files". Then pick your file.

    The 'content' of the file (from notepad) is always a text file, in that it contains only characters (readable) as text - with no 'hidden' or crazy-looking characters. This is the correct file 'format' - text - for loading and running in AutoCAD.

    Bob
     
    ECCAD, Jun 11, 2004
    #8
  9. spectrefish

    spectrefish Guest

    Thanks to everyone!! Have a good weekend.
     
    spectrefish, Jun 11, 2004
    #9
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.