CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 20905

CAD tip CAD tip # 6366:

   
Question CAD 
 %  platform  category 
Q - question

Inserting and updating time and date in an AutoCAD drawing.

A - answer There are several ways how to insert a time and date text stamp in an AutoCAD drawing. The individual methods differ also in how and when such date is updated.

  1. Plain text - you can always put dates manually in the text (e.g. by copying from Word)
  2. Diesel macro - you can add a Diesel macro to your toolbars or pull-down menus which inserts the current date/time - use e.g. $M=$(EDTIME,0,DD.MO.YYYY HH:MM:SS); this makes a plain text (never updated)
  3. RTEXT - the remote text command from Express Tools can add a dynamic text containing some property of the drawing or drawing environment - you can e.g. use a Diesel expression $(edtime,0,MON DD"," YYYY - H:MMam/pm) which will display the current date and time. Such date is updated on every regen.
  4. FIELD - dynamic text fields are the most flexible way to add time and date to your drawings. You can use fields separately (as standalone texts, FIELD), in block attributes (e.g. title blocks), or inside Mtext texts. You can choose formatting and various time/date sources (current date, last save date, last plot date, creation date). Please note that the current date value does not behave like the other fields - it is not automatically updated on events defined with the FIELDEVAL variable but only on the UPDATEFIELD command.
    You can also use Diesel expressions in Fields - use the above mentioned RText Diesel expression to make a dynamically updated time/date in a Field.

    You can also enter the field code as a plain text - AutoCAD will properly interpret it even in AutoCAD LT. Use the DTEXT command to enter e.g. the following text: %<‍‍‌‪\AcVar Date \f "%#c">%
    An option of this is a field with dynamically updated date/time using the system variable CDATE, i.e. the field code %<‪\AcVar cdate>%
  5. Plot stamp - plot stamp (the PLOTSTAMP command, or the stamp setting in the PLOT dialog) adds time/date texts only to printouts (outside borders) of your drawings.
  6. External data source - an advanced method for inserting live time data (e.g. time of the latest data update) from an external database or XLS table. You can use the dbConnect tools, linking to Excel or an add-on utility.
ACADLT
100% *  CAD 
30.10.2008    73789×  
Prices - CAD eShop:
applies to: AutoCAD · AutoCAD LT ·

See also:


Back   All CAD Tips



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   



Featuring:
Increase your productivity with our set of add-on functions for AutoCAD Civil 3D
CADstudio Civil Tools More info


Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist