• 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. Adams
  3. Reading .req files using python

Following Cadence Design Systems’ acquisition of the Design & Engineering (D&E) business, the D&E Community Forum on the Nexus Community Center has been migrated in the Cadence Physical System Simulation Community. For more details and if you have any questions, please refer to the FAQ.

Stats

  • State Verified Answer
  • Replies 5
  • Subscribers 3
  • Views 20
  • Members are here 0
More Content

Reading .req files using python

niels.devries
niels.devries over 5 years ago
Hey all,
 
I was wondering if someone has made a python script to read out .req files, and is willing to share his code, before i start to reinvent the wheel.
 
Example of my req. file:
Timestep value start at row 6 and the request results are shown on row 7 and 8.
 
Knipsel
Thanks in Advance!
  • Sign in to reply
  • Cancel
  • Kent West
    0 Kent West over 5 years ago
    Hi Niels,
     
    There are some scripts in our SimCompanion site that might be a good place to start:
    simcompanion.mscsoftware.com/.../index
     
    HTH,
    Kent
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • Maziar R
    0 Maziar R over 5 years ago
    This may also be helpful though what Kent shared is more generic and therefore more useful:
     
    Utility to remove "extra" time blocks from request files
     
    Thanks,
    Maziar
     
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • MK202610123211
    0 MK202610123211 over 5 years ago
    If you start writing something new:
    Why bother with the old req-format and not using the res-files with the xrf-option (xml format) ?
    The advantage is that it already contains all the naming and hierachy that the req doesn't have or needs to add via nam-files.
     
    Plus:
    For flex-bodies, you'd need a res-file anyway, wich is basically 90% of our models.
    And there's plenty of code on the net for xml-reading ....
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • niels.devries
    0 niels.devries over 5 years ago
    @Martin Kieltsch​ Because of the file size. .res files are much larger compared to .req files. Atm i saved 1000+ sim results in .req format which is only ~1GB. Saving this in .res format would results in ~100+GB
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • niels.devries
    0 niels.devries over 5 years ago
    @Martin Kieltsch​  Ah i just found out you can actually select/deselect what you want to save in the .res file, which would results in the same file size, oops :P
     
    Anyway, i got my python scripts working with .req files now, but i keep this .res option in mind, thanks!
     
    k
    • 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.

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

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