• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. PCB Design
  3. date to update automatically

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 166
  • Views 14172
  • Members are here 0
More Content
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

date to update automatically

Pieman
Pieman over 15 years ago

Good Day,

Is there a tag, field or something that can be entered in at the board level that will automatically update to the current date each time the board file is opened?

 We have dates (entered in as just text) on our fabrication title blocks as well as in another location on our assembly drawings.

It would be nice to be able to place a special symbol that would be for current date and would update automatically.

 Inveriably we create films and find that we did not update the date, or the rev level of the board - we are human you know.

 

Any thoughts, suggestions, solutions would be appreciated.

Marvin

  • Cancel
Parents
  • Pieman
    Pieman over 15 years ago

     Ole,

    I much appreciated your code.  I encountered one strange thing though.  If I have more than one text string that started with "Date:" then the string would add another "Date:" in front of it up to the number of date strings that are on the board.

    I discovered that the "replace_text" variable was being updated with itself, thus the addition of the "Date:" string.

    I corrected these lines of code thus: (note the new variable replace_text_new)

         sprintf(replace_text_new "%s %s" substring(board_textid->text 1 5) replace_text)

         ns_replaceText(board_textid replace_text_new)

     

    Thank you again!

    Marvin.

     

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Pieman
    Pieman over 15 years ago

     Ole,

    I much appreciated your code.  I encountered one strange thing though.  If I have more than one text string that started with "Date:" then the string would add another "Date:" in front of it up to the number of date strings that are on the board.

    I discovered that the "replace_text" variable was being updated with itself, thus the addition of the "Date:" string.

    I corrected these lines of code thus: (note the new variable replace_text_new)

         sprintf(replace_text_new "%s %s" substring(board_textid->text 1 5) replace_text)

         ns_replaceText(board_textid replace_text_new)

     

    Thank you again!

    Marvin.

     

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information