• 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. Allegro X PCB Editor
  3. Database diary journal

Stats

  • State Suggested Answer
  • Replies 4
  • Answers 1
  • Subscribers 159
  • Views 6430
  • Members are here 0
More Content

Database diary journal

DBTCH
DBTCH over 2 years ago

Hi All ,

Somebody know if there is a way to check if the database diary journal is not empty with Skill command ?

I would like to open the diary journal at the opening database if the journal contain some information .

Best regards

  • Sign in to reply
  • Cancel
  • B Bruekers
    0 B Bruekers over 2 years ago

    Afaik it is stored as an attachment.

    att = axlGetAttachment("db_diary.txt" 'string)

    l_string = parseString(att->data "\n\r")

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • revida marcos
    0 revida marcos over 2 years ago

    Good day!

    There are a few different approaches you can take if you want to use a Skill command to determine whether the database diary journal is empty. Using a conditional statement to see if the journal has any entries is one straightforward method. You may, for instance, employ the following "IF" statement:


    IF diary_journal NOT EMPTY
    // Open the diary journal
    ENDIF

    To put it simply, this code means "If the diary journal is not empty, then open it." You can tell if the journal has information by examining if the diary_journal variable is not empty.

    To reflect your actual database diary journal, replace "diary_journal" with the proper variable or command.

    Hope that was useful. Regarding your database journal, good luck!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • DBTCH
    0 DBTCH over 2 years ago

    Thank you for your answers,

    your answers confirm what I thought.

    I need to export to a text file first and if there are no records there is no db_diary.txt created, so just test if the file exists.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • B Bruekers
    0 B Bruekers over 2 years ago in reply to DBTCH

    Don't get confused with the name 'db_diary.txt'.  It is not a text file but an attachment in the BRD file.

    So there is no need to export anything, just check if the attachment is present and contains something.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
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