Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Date Attribute in title block

  1. #1
    Member
    Join Date
    2016-11
    Posts
    5
    Login to Give a bone
    0

    Default Date Attribute in title block

    I have a title block with a date attribute: %<\AcVar date \f "%#x">% which indicates the current date when I insert my title block but which, when I open my drawing a few days later, the date does not change for the current date. how to make sure that this attribute always indicates the current date on which the drawing is open. Thanks!!

  2. #2
    Certifiable AUGI Addict tedg's Avatar
    Join Date
    2005-06
    Location
    in the upper right corner
    Posts
    3,144
    Login to Give a bone
    0

    Default Re: Date Attribute in title block

    Quote Originally Posted by Axys Bruno View Post
    I have a title block with a date attribute: %<\AcVar date \f "%#x">% which indicates the current date when I insert my title block but which, when I open my drawing a few days later, the date does not change for the current date. how to make sure that this attribute always indicates the current date on which the drawing is open. Thanks!!
    Congrats on your first post.
    I thought I replied to this and sorry if a duplicate shows up..

    If this is a field (which it looks like it is) check out your variable setting: FIELDEVAL
    Ted
    ____________________________________________________________________ ________________
    Windows 7 Professional
    AutoCAD 2017 - REVIT 2017 - Inventor Professional 2015 (when I can)

  3. #3
    Member
    Join Date
    2016-11
    Posts
    5
    Login to Give a bone
    0

    Default Re: Date Attribute in title block

    O.K. the variable "fieldeval" is set to 31

  4. #4
    Certifiable AUGI Addict tedg's Avatar
    Join Date
    2005-06
    Location
    in the upper right corner
    Posts
    3,144
    Login to Give a bone
    0

    Default Re: Date Attribute in title block

    Quote Originally Posted by Axys Bruno View Post
    O.K. the variable "fieldeval" is set to 31
    With that said, it should update with the "UPDATEFIELD" command
    Ted
    ____________________________________________________________________ ________________
    Windows 7 Professional
    AutoCAD 2017 - REVIT 2017 - Inventor Professional 2015 (when I can)

  5. #5
    Member
    Join Date
    2016-11
    Posts
    5
    Login to Give a bone
    0

    Default Re: Date Attribute in title block

    Okay, but, my title block is on each of the tabs of my drawing so I have to do this command in each of the tabs. Is there a command that would update all my tabs.

  6. #6
    Certifiable AUGI Addict tedg's Avatar
    Join Date
    2005-06
    Location
    in the upper right corner
    Posts
    3,144
    Login to Give a bone
    0

    Default Re: Date Attribute in title block

    Quote Originally Posted by Axys Bruno View Post
    Okay, but, my title block is on each of the tabs of my drawing so I have to do this command in each of the tabs. Is there a command that would update all my tabs.
    I don't know for sure but what happens if you type "all" when prompted?

    <command> UPDATFIELD > select object > ALL <enter>
    Ted
    ____________________________________________________________________ ________________
    Windows 7 Professional
    AutoCAD 2017 - REVIT 2017 - Inventor Professional 2015 (when I can)

  7. #7
    Member
    Join Date
    2016-11
    Posts
    5
    Login to Give a bone
    0

    Default Re: Date Attribute in title block

    This only updates the title block of the active tab. I tried by selecting all the tabs but with the same result.

  8. #8
    Certifiable AUGI Addict tedg's Avatar
    Join Date
    2005-06
    Location
    in the upper right corner
    Posts
    3,144
    Login to Give a bone
    0

    Default Re: Date Attribute in title block

    There's probably a way to do this with script or lisp, maybe someone else out there has some thoughts..
    To apply to all the block names "TEST" in all the layouts.

    something like this but grabbing all the layouts escapes me..
    (I hacked together some code from other routines but I don't know what I'm doing)
    Code:
    (defun c:dupdate (/ TB)
    (setvar "fieldeval" 31)
    (setq TB (ssget "x" '((0 . "INSERT")(2 . "TEST")(410 . "*"))))
    (foreach lay (layoutlist)
    (command "updatefield" TB "" )
    )
    )
    Ted
    ____________________________________________________________________ ________________
    Windows 7 Professional
    AutoCAD 2017 - REVIT 2017 - Inventor Professional 2015 (when I can)

  9. #9
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL
    Posts
    3,119
    Login to Give a bone
    0

    Default Re: Date Attribute in title block

    As it would automatically update on plot, save, or regen does it really make any difference what it looks like while you're just editing the drawing?
    Tom Beauford P.S.M. - Civil 2019 on Windows 10 Enterprise
    Design Analysis - Leon County Public Works/Engineering Wrap [CODE] tags around selected text
    2280 Miccosukee Rd. Tallahassee, FL 32308-5310
    Ph# (850)606-1516 Home Page

  10. #10
    Certifiable AUGI Addict tedg's Avatar
    Join Date
    2005-06
    Location
    in the upper right corner
    Posts
    3,144
    Login to Give a bone
    0

    Default Re: Date Attribute in title block

    Quote Originally Posted by Tom Beauford View Post
    As it would automatically update on plot, save, or regen does it really make any difference what it looks like while you're just editing the drawing?
    Good point, but I'm not sure that is true.
    According to ACAD, the date field doesn't automatically update according to the "FIELDEVAL" settings and that you need to use "UPDATEFIELD"
    Attached Images Attached Images
    Ted
    ____________________________________________________________________ ________________
    Windows 7 Professional
    AutoCAD 2017 - REVIT 2017 - Inventor Professional 2015 (when I can)

Page 1 of 2 12 LastLast

Similar Threads

  1. Change block attribute with today date
    By Arterius in forum AutoLISP
    Replies: 9
    Last Post: 2015-07-14, 03:04 AM
  2. 2013: date parameter in title block (sheet)
    By jledgewood in forum Revit - Platform
    Replies: 1
    Last Post: 2014-03-18, 03:14 PM
  3. Copy previous Block Attribute Value to next Block Attribute
    By CADfunk MC in forum VBA/COM Interop
    Replies: 8
    Last Post: 2009-02-27, 09:46 PM
  4. Creating An Attribute Block For Revision or Title Block
    By fnguyen05 in forum AutoCAD General
    Replies: 2
    Last Post: 2005-12-22, 03:14 PM
  5. Convert MDT Title Block to Inventor 10 Title Block
    By julesgordon in forum Inventor - General
    Replies: 1
    Last Post: 2005-07-18, 08:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •