What about ldata?

Discussion in 'AutoCAD' started by Devin, Jan 29, 2004.

  1. Devin

    Devin Guest

    Do the ldata functions work now? I know there was some problems early on.

    ie: vlax-ldata-put / vlax-ldata-get

    TIA,

    Devin
     
    Devin, Jan 29, 2004
    #1
  2. IMHO, it is a dead-end. The data is not available to VBA, so I am concerned
    that it won't be available to future supported languages either.


    --
    R. Robert Bell, MCSE
    www.AcadX.com


    | Do the ldata functions work now? I know there was some problems early on.
    |
    | ie: vlax-ldata-put / vlax-ldata-get
    |
    | TIA,
    |
    | Devin
    |
    |
     
    R. Robert Bell, Jan 29, 2004
    #2
  3. Devin

    Devin Guest

    Do you think it will be supported in lisp and active x later on? Also is
    there another way to store and retrieve data?
     
    Devin, Jan 29, 2004
    #3
  4. Robert,

    Have you tested with .NET apps yet?

    And what will be your recommendation to save data (safely).
     
    Luis Esquivel, Jan 29, 2004
    #4
  5. Dictionaries/Xrecords
     
    Jason Piercey, Jan 29, 2004
    #5
  6. Since the LData isn't available via ActiveX, it doesn't matter with .NET
    (those must use ActiveX at this time).

    Vanilla Dictionaries/XRecords are the way to go.

    --
    R. Robert Bell, MCSE
    www.AcadX.com


    | Robert,
    |
    | Have you tested with .NET apps yet?
    |
    | And what will be your recommendation to save data (safely).
    |
    |
    |
    | | > IMHO, it is a dead-end. The data is not available to VBA, so I am
    | concerned
    | > that it won't be available to future supported languages either.
    | >
    | >
    | > --
    | > R. Robert Bell, MCSE
    | > www.AcadX.com
    | >
    | >
    | > | Do the ldata functions work now? I know there was some problems early
    | on.
    | > |
    | > | ie: vlax-ldata-put / vlax-ldata-get
    | > |
    | > | TIA,
    | > |
    | > | Devin
    | > |
    | > |
    | >
    | >
    |
    |
     
    R. Robert Bell, Jan 29, 2004
    #6
  7. LDATA is just a way to 'encrypt' your data in a
    dictionary, using a custom object. In fact, in
    some circumstances (opening a file by double-
    clicking in explorer) you can see proxy notices
    when you open a file with LDATA.

    The only thing LDATA offers is that it preserves
    the original list structure, which is something
    that is useful only to entry level programmers.

    The disadvantages is that it is a way to lock
    your data up in a way that can potentially
    render it completely inaccessible, which is
    what happened when R14 drawings were migrated
    to AutoCAD 2000.

    You can use Dictionaries and XRecords to store
    anything you can store in LDATA and can access
    it via any API you might choose to use.

    In short, stay as far away from LDATA as you
    can possibly get.
     
    Tony Tanzillo, Jan 29, 2004
    #7
  8. Devin

    Devin Guest

    Thanks for the rundown Tony. I thought ldata and dictionaries were the same
    thing, I'm still living in the stone age a little :(

    Thanks, I think I'll use dictionaries if I can.

    Devin
     
    Devin, Jan 29, 2004
    #8
  9. Devin

    Devin Guest

    Vanilla Dictionaries/XRecords are the way to go.

    Thanks Robert I appreciate your knowledge on the issue. I'm glad I asked, I
    think I'll try using dictionaries for my settings data storage.

    Devin
     
    Devin, Jan 29, 2004
    #9
  10. I use them all the time, work real well for drawing dependent
    data. It helped me to have a set of standard 'toolbox' functions
    for handling dictionaries/xrecords. I've since converted all of
    that stuff over to ActiveX and also started using the registry to
    store some program specific values.
     
    Jason Piercey, Jan 29, 2004
    #10
  11. Devin

    Devin Guest

    That's pretty smart! I'm going to use activeX and devlope some handling
    functions too.

    Thanks,

    Devin
     
    Devin, Jan 29, 2004
    #11
  12. Devin

    tsigwing Guest

    So the command vlax-ldata-put is storing to a dictionary and not to ldata? I think this is correct, but the "ldata" part of the command is misleading.

    Troy
     
    tsigwing, Jan 29, 2004
    #12
  13. LData is stored in a dictionary. The LData _itself_ is *not* available
    outside of LISP.

    --
    R. Robert Bell, MCSE
    www.AcadX.com


    | So the command vlax-ldata-put is storing to a dictionary and not to ldata?
    I think this is correct, but the "ldata" part of the command is misleading.
    |
    | Troy
     
    R. Robert Bell, Jan 30, 2004
    #13
  14. No. LDATA is stored in a custom object, which itself is stored
    in a dictionary.
     
    Tony Tanzillo, Jan 30, 2004
    #14
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.