• 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. Custom IC Design
  3. Changing default height, width and resolution in VIVA Save...

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 126
  • Views 8062
  • Members are here 0
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

Changing default height, width and resolution in VIVA Save Image form?

jehh
jehh over 2 years ago

Is it possible to change the default values of the Save Image form?

I've looked in the documentation, but so far the 'best' solution is using an OCEAN script, however, this seems not ideal. I would like that it was default in the GUI.

Virtuoso version: IC-6.1.8-ISR29.

  • Cancel
Parents
  • ShawnLogan
    ShawnLogan over 2 years ago

    Dear jehh,

    jehh said:

    Is it possible to change the default values of the Save Image form?

    I've looked in the documentation, but so far the 'best' solution is using an OCEAN script, however, this seems not ideal. I would like that it was default in the GUI.

    Well, it is not exactly what you are looking for as I gather you would like a few options to set in your .cdsinit or .cdsenv file, but there is an analogous SKILL function to the ocean function saveGraphImage() called hiExportImage(). You could either use this command directly from the CIW to export your image with your desired set of width, height, and resolution settings or follow the instructions provided in the Troubleshooting article below to save your desired default values to a file and define a bindkey to load the file into the GUI and then display the GUI to export the image.

    I hope one of these two methods makes your exporting image process a little easier!

    Shawn

    Troubleshooting Article "Export Image: How to change/set default values"

    URL:https://support.cadence.com/apex/ArticleAttachmentPortal?id=a1O0V0000091BdRUAU&pageName=ArticleContent

    SKILL function hiExportImage() URL:

    support.cadence.com/.../techpubDocViewerPage

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 2 years ago in reply to ShawnLogan

    There are no cdsenv settings to initialise this - partly because ViVA remembers the settings from the last invocation of ViVA; they are stored in ~/.config/Cadence\ Design\ Systems,\ Inc/viva.conf (watch out for  the embedded spaces). In the saveImage section, there are resizeImage and size settings amongst others.

    Possibly a python script using PyQt5 and QSsettings might be the best way of updating this (should you need to) - I didn't try as I was having some setup problems in my local virtual machine.

    Shawn's suggestion of using hiExportImage() won't work as it's for exporting an image of a design - schematic, symbol or layout. It is not for waveforms.

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • ShawnLogan
    ShawnLogan over 2 years ago in reply to Andrew Beckett

    Dear Andrew,

    Andrew Beckett said:
    Shawn's suggestion of using hiExportImage() won't work as it's for exporting an image of a design - schematic, symbol or layout. It is not for waveforms.

    Thank you for correcting me (and reading my response!).

    It appears the ocean command saveGraphImage() is designed for ViVA windows from its description.

    Perhaps jehh might find it acceptable to assign a bind key to load a SKILL script to prompt for a filename, height, width, and resolution and then call saveGraphImage() as an ocean command with the filename, height, width, and resolution as arguments to the ocean script.

    Shawn

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • jehh
    jehh over 2 years ago in reply to Andrew Beckett

    Andrew, Shawn,

    Thank you both for your input - I will start with the python script approach, and should I reach a deadend, a Skill Script might be the best option.

    Regarding resolution; It doesn't seem like ViVa remembers this from the last invocation? It seems to always reset to 96.

    Br,

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 2 years ago in reply to jehh

    Hi jehh,

    It does for me - changing the resolution, it updates the dpi entry in the viva.conf file. If I quit and restart, that value is used in the new session. 

    I tested this with IC6.1.8-64b.500.32 - which version were you using?

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 2 years ago in reply to jehh

    Hi jehh,

    It does for me - changing the resolution, it updates the dpi entry in the viva.conf file. If I quit and restart, that value is used in the new session. 

    I tested this with IC6.1.8-64b.500.32 - which version were you using?

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • ShawnLogan
    ShawnLogan over 2 years ago in reply to Andrew Beckett

    Dear Andrew,

    Andrew Beckett said:
    I tested this with IC6.1.8-64b.500.32 - which version were you using?

    Unless jehh has just changed his version, I think he mentioned he was using IC-6.1.8-ISR29

    Shawn

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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