Date attribute

Paul M

Usenet Archive
Joined
Jul 26, 2003
Messages
7
Reaction score
0
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.
 
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
 
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
 
How about RTEXT with this
Plot Date: [$(edtime, 0, MON. DD"," YYYY - HH:MMam/pm)] ?
cmg
 
That sounds like what I was looking for. I'd like to give it a try, if you don't mind emailing it to
 
What is RTEXT?

Is that a typo?

Chris Galazka said:
How about RTEXT with this
Plot Date: [$(edtime, 0, MON. DD"," YYYY - HH:MMam/pm)] ?
cmg

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.
 

Latest threads

Back
Top