Date attribute

Discussion in 'AutoCAD' started by Paul M, Jan 15, 2004.

  1. Paul M

    Paul M Guest

    Does anyone know if there is a (fairly) simple way to make a date entity in
    a title block that automatically puts the current date or date and time in a
    drawing?

    What I want is a (title) block that when I insert it always puts the current
    date in the correct position. Rather than always updating a date attribute.
    I currently use the plot stamp feature but it is not controllable enough in
    terms of position and it does not show up in the full preview.

    I have looked into it a little and know about the get date variable and the
    whole Julian Calendar conversion. But someone out there must have written a
    lisp to do this already.

    Paul M.
     
    Paul M, Jan 15, 2004
    #1
  2. Paul M

    ECCAD Guest

    If your title block has an attrib for date, you can easily insert current date / time - within the existing routine to insert the title block. Just follow up the insert with a function to get the block, and entmod the value of the date attrib. Search for the 'tag' name, grab the entity, and stuff the date/time into it.
    That is, if the 'tag' name is consistent.

    Bob
     
    ECCAD, Jan 15, 2004
    #2
  3. Paul M

    Jeff Mishler Guest

    I have a routine I wrote a few years ago that I keep updating to satisfy
    new options in newer versions.

    It first looks for an insertion of a block called "plot-date" in the
    current Tab only. If it is found, it gets modified to the current date.
    If it's not found, the routine creates it and inserts it at a predefined
    location that coincides with the borders of 2 different title blocks,
    or, if neither of those blocks are found, 0.0, 0.0

    I have redefined the plot command to run this routine, so we know when a
    drawing is sent to the plotter.

    It wouldn't be too hard to modify it for use in your office.

    If interested I will email it.

    Jeff
     
    Jeff Mishler, Jan 15, 2004
    #3
  4. How about RTEXT with this
    Plot Date: [$(edtime, 0, MON. DD"," YYYY - HH:MMam/pm)]
    ?
    cmg
     
    Chris Galazka, Jan 15, 2004
    #4
  5. Paul M

    Paul M Guest

    That sounds like what I was looking for. I'd like to give it a try, if you
    don't mind emailing it to
     
    Paul M, Jan 16, 2004
    #5
  6. Paul M

    Paul M Guest

    What is RTEXT?

    Is that a typo?


     
    Paul M, Jan 16, 2004
    #6
  7. Paul M

    Paul Turvill Guest

    Express Tool: Remote TEXT.
    ___
     
    Paul Turvill, Jan 16, 2004
    #7
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.