Hello guys,
We have several macros for updating revision attributes with the current date
We have 2 attributes in our title block one that's formatted like mm/day/yr and the other mm/day.
The macro calls 2 lisp routines we have in our acad.lsp file for the formatting (see below)
They work but only one layout at a time and drawing at a time which is becoming a real pain to use as our jobs are huge now.
What I am looking for is a way to update these attributes across mulltiple layouts and files. What I was trying to propose to my boss is that we make the attribute values unique then we could use another program we have
scroll down to bottom of this topic to update them in one shot.
She doesn't like this method because she still wants the date to be aquired from the system rather than the user having to input it. I was also thinking of putting this macro into a script but not sure how to run it across multiple layout tabs. So I'm wondering if anyone can help me with this or has another method I can try because this is killing me at this point. Thanks
ZOOM
EXTENTS
_.TEXTEVAL
1
-ATTEDIT
_Y
*
REV_DATE
*
_C
(GETVAR "EXTMIN")
(GETVAR "EXTMAX")
_V
_R
(UPTODAY)
_N
_V
_R
(TODAY)
_N
ZOOM
PREVIOUS
;This function is to get the current date in format mm/day/yr
;to use in date attribute updating
(defun today ( / -d yr mo day)
(setq d (rtos (getvar "CDATE") 2 6)
yr (substr d 3 2)
mo (substr d 5 2)
day (substr d 7 2)
)
(strcat mo "/" day "/" yr)
);defun
;This function is to get the current date in format mm/day
;to use in date attribute updating
(defun uptoday ( / -d mo day)
(setq d (rtos (getvar "CDATE") 2 6)
mo (substr d 5 2)
day (substr d 7 2)
)
(strcat mo "/" day)
);defun