Author Topic: Field - Date & Time  (Read 4287 times)

0 Members and 1 Guest are viewing this topic.

Fabricio28

  • Swamp Rat
  • Posts: 670
Field - Date & Time
« on: November 06, 2015, 05:30:35 AM »
Hi all,

Why does field (date&time) isn't updated automatically in my project?

I have 13 layouts with field and I have to open each one and update manually.

Others fields just regen command works fine.

Thanks

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Re: Field - Date & Time
« Reply #1 on: November 06, 2015, 07:45:32 AM »
Just a couple ideas.

Quote
Note: The Date field is updated by UPDATEFIELD, but it is not updated automatically based on the setting of the FIELDEVAL system variable.

Quote
UPDATEFIELD (Command)
You can update a field manually when you want to see the latest value. The Date field never updates automatically and must be updated manually.
TheSwamp.org  (serving the CAD community since 2003)

Fabricio28

  • Swamp Rat
  • Posts: 670
Re: Field - Date & Time
« Reply #2 on: November 06, 2015, 08:31:09 AM »


Quote
Note: The Date field is updated by UPDATEFIELD, but it is not updated automatically based on the setting of the FIELDEVAL system variable.

Hi Mark


FIELDEVAL is 31.

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Field - Date & Time
« Reply #3 on: November 06, 2015, 08:45:48 AM »

Quote
Note: The Date field is updated by UPDATEFIELD, but it is not updated automatically based on the setting of the FIELDEVAL system variable.

FIELDEVAL is 31.

Fabricio28

  • Swamp Rat
  • Posts: 670
Re: Field - Date & Time
« Reply #4 on: November 06, 2015, 08:53:17 AM »

Quote
Note: The Date field is updated by UPDATEFIELD, but it is not updated automatically based on the setting of the FIELDEVAL system variable.

FIELDEVAL is 31.

Thank you Mr Lee Mac and Mark  :-(

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Re: Field - Date & Time
« Reply #5 on: November 06, 2015, 09:12:36 AM »
I have 13 layouts with field and I have to open each one and update manually.
Is the field part of a block or xref? You can 'UPDATEFIELD' and select either. All the fields should update.
TheSwamp.org  (serving the CAD community since 2003)

ChrisCarlson

  • Guest
Re: Field - Date & Time
« Reply #6 on: November 06, 2015, 09:21:25 AM »
Instead of date field use a diesel expression, it will be updated on regen.

Fabricio28

  • Swamp Rat
  • Posts: 670
Re: Field - Date & Time
« Reply #7 on: November 06, 2015, 10:19:13 AM »
Instead of date field use a diesel expression, it will be updated on regen.

Hi
Chris,

It is a good idea. But I don't know how to use diesel expression.  :?

Fabricio28

  • Swamp Rat
  • Posts: 670
Re: Field - Date & Time
« Reply #8 on: November 06, 2015, 10:20:25 AM »
I have 13 layouts with field and I have to open each one and update manually.
Is the field part of a block or xref? You can 'UPDATEFIELD' and select either. All the fields should update.

13 layouts I mean paper space.

Thanks

ChrisCarlson

  • Guest
Re: Field - Date & Time
« Reply #9 on: November 06, 2015, 10:27:10 AM »
Instead of date field use a diesel expression, it will be updated on regen.

Hi
Chris,

It is a good idea. But I don't know how to use diesel expression.  :?

Try this

http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%202010%20User%20Documentation/index.html?url=WS73099cc142f4875513fb5cd10c4aa30d6b-7afe.htm,topicNumber=d0e394867

In an rtext entity
Code - Auto/Visual Lisp: [Select]
  1. $(edtime, 0, MON DD"," YYYY - H:MMam/pm)


mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Field - Date & Time
« Reply #10 on: November 06, 2015, 10:29:37 AM »
Field

Other

Diesel

sample>>>>

$(edtime, 0, MON DD","  YYYY - H:MMam/pm)
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Fabricio28

  • Swamp Rat
  • Posts: 670
Re: Field - Date & Time
« Reply #11 on: November 06, 2015, 10:50:08 AM »
Field

Other

Diesel

sample>>>>

$(edtime, 0, MON DD","  YYYY - H:MMam/pm)

Thank you guys,

How Can I put this format in diesel expression.
%<\AcVar CreateDate \f "%c">%

Regards

ChrisCarlson

  • Guest
Re: Field - Date & Time
« Reply #12 on: November 06, 2015, 10:54:32 AM »
Read the link....

Code - Auto/Visual Lisp: [Select]
  1. $(edtime, 0,M"/"D"/"YYYY - H:MM:SS AM/PM)

Fabricio28

  • Swamp Rat
  • Posts: 670
Re: Field - Date & Time
« Reply #13 on: November 06, 2015, 10:57:44 AM »
Read the link....

Code - Auto/Visual Lisp: [Select]
  1. $(edtime, 0,M"/"D"/"YYYY - H:MM:SS AM/PM)

Thank you Chris,

I forgot to insert *edtime.

Thank you