DCL and reading files

Discussion in 'AutoCAD' started by Nathan Withers, Aug 9, 2004.

  1. Anybody know an easy way to read a text file and display it's contents in a
    dialog box in a way that would make it editable? I can construct the dialog
    box using a trick similar to the afralisp tutorial here:
    http://www.afralisp.com/lisp/dclatt2.htm. But I can't find a way to put the
    entire contents into one box for editing. I can do it so that each line of
    text is in a separate edit box (just like the afralisp tutorial), but I
    would prefer to have one multi-row edit box. Is there a way to do this with
    pure DCL and NOT with Object DCL?
     
    Nathan Withers, Aug 9, 2004
    #1
  2. Nathan Withers

    zeha Guest

    Nathan,

    For so far i now there is'nt such a dialog.

    You can try it with DosLib from Robert McNeel & Associates with dos_editbox

    Example (dos_editbox "Editor" "Enter some text" "Hockey\nis\nthe\nbest!")

    Cheers

    Harrie
     
    zeha, Aug 10, 2004
    #2
  3. Nathan,

    If you have the express tools acetutil.arx then see the acet-ui-txted function. Of course, there is no guarantee that this will be supported in future releases.

    Peter
     
    petersciganek, Aug 10, 2004
    #3
  4. Nathan Withers

    Jim Claypool Guest

    Why not use Notepad?
     
    Jim Claypool, Aug 10, 2004
    #4
  5. Let's explain a little:
    I created a dialog box that allows me to make changes specific settings
    (i.e. osmode, orthomode, filletrad) loaded in my acaddoc.lsp file. I would
    like to have an edit box that allows me to append a few lines to the file
    directly. Notepad May work, but a multi-line edit box would look and
    function much nicer.

    Did a little more digging and have found other who have asked the same basic
    question. The concensus is multi-line edit boxes don't exist in pur vanilla
    lisp/DCL. Too bad.
     
    Nathan Withers, Aug 10, 2004
    #5
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.