User String One

Discussion in 'AutoCAD' started by john m, Jun 11, 2004.

  1. john m

    john m Guest

    Hello,

    I would like to save the name of a file with the drawing. Does anyone
    know a good way to do that?

    The way I have always done before was to use one of the user variables
    to keep the project number and then construct the file spec from that.

    Now projects are often too big for just one data file.

    I thought about getting the PROJECTNAME sysvar and doing something with
    that.

    What i really wish is that the User String variables were saved with the
    drawing.

    thanks in advance for any suggestions

    jm
     
    john m, Jun 11, 2004
    #1
  2. It all depends upon how you're going to use it - specifically if only
    wiithin AutoCAD or from an external app too. Some options are:

    Dictionary/Xrecord
    XData or hidden attribute in titleblock
    File's custom properties
    piggyback an XML or ASCII text file

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Jun 11, 2004
    #2
  3. john m

    john m Guest

    Thanks Mike

    those are some good ideas

    by piggyback i assume you mean that i would have an ascii file with the same
    name as the drawing? with a pointer to the data there?

    i think i like the file properties deal best

    any way to access that from VBA?

    thanks again

    jm
     
    john m, Jun 11, 2004
    #3
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.