×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

INSERT CURENT DATE INTO TEXT

INSERT CURENT DATE INTO TEXT

INSERT CURENT DATE INTO TEXT

(OP)
ok i want set a button or something to place or replace the date or the following text ?month? dd, yyyy with the corect current date
any body done this before

if everyone helps everybody the world will be a better place

RE: INSERT CURENT DATE INTO TEXT

Try some form of this:


;------------------
; Routine:       C:TODAY
; Description:   Places current date text in selected location
;------------------
(defun c:today (/ layer ts ip)
  (setq ip (getpoint "\nInsertion Pt: "))
  (command "text" ip (getvar "textsize") "0"
    (strcat (substr (rtos (getvar "cdate")) 3 2) "/"
            (substr (rtos (getvar "cdate")) 5 2) "/"
            (substr (rtos (getvar "cdate")) 7 2)
    )
  )
  (princ)
);end c:today function


Tim

RE: INSERT CURENT DATE INTO TEXT

(OP)
Ok but what about an existing peice of text or block attribute???

if everyone helps everybody the world will be a better place

RE: INSERT CURENT DATE INTO TEXT

I use 2 different files one that updates the date and time. Both of those are separate attibuted blocks and only the ones in the current drawing tab get updated.  The other file updates the date and time attributes built into a title block.  If any of these interest you send me an email: smotichek@projectconsulting.com.

If you want to update a title block, let me know what the attribute tag is for the date and the format for date and I'll send it to you.  The format for the date is currently MM-DD-YY and the time is in military.

SEMott

Stephen E. Motichek
Project Consulting Services, Inc.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources