Automatic Date Updates Using Field In AutoCAD

Depending on each individual, using field can really be a powerful tool if you know how to properly utilize it. A field is a multiline text which updates whenever the field value changes. For example, you can use a field to follow the name of your given drawing.

Apparantly whenever you use field to set dates, it does not automatically update in the drawing even if you set your “FILEDIA” but instead you need to use a command “UPDATEFIELD” to manually update your drawings. For me this is good enough as I do not want my drawings to update automatically as it does not benefit me at all. But for some of you who wants to customise your date to automatically update in your drawings, I came up with a diesel expression that will update the dates automatically whenever you open or regenerate. There are other selection of date formats that you can use but as mentioned earlier, you need to update the dates manually.

Diesel Expression: $(edtime,$(getvar,date),” “DD/MO/YY)

This expression will give you the date in this format: 05/09/14

You may also change the dates formats just by changing the values of “DD”, “MO” & “YY”.

DD – Denotes for day (in numerical)

MO – Denotes for month (in numerical)

MON – Denotes for month (in alphabetical)

YY – Denotes fpr year (in numerical)

Lets take a look at another diesel expression example that you can create, now I would like to create a date using field in the format 05-AUG-2014 and 05AUGUST2014.

1. Diesel Expression: $(edtime,$(getvar,date),” “DD-MON-YYYY) = 05-AUG-2014

2. Diesel Expression: $(edtime,$(getvar,date),” “DDMONTHYYYY) = 05AUGUST2014

Just look at how I change the values respectively. Its that simple. If you are wondering where or how to place athis diesel expression to customise a date field, just take a look at the images uploaded below.

Step 1:

field1

Step 2:

field2

Step 3:

field3

Step 4:

field4

Step 5:

field5

 

 

One thought on “Automatic Date Updates Using Field In AutoCAD

Leave a comment