Unfortunately it's a historical thing - there's a CCR to address the need for a .cdsplotinit (it shouldn't be needed in this case because you're not using it).
It's covered in the plotting documentation, but the simplest thing is to create a ~/.cdsplotinit with the following contents:
Encapsulated PostScript|Encapsulated PostScript: \ :manufacturer=Adobe: \ :type=epsf: \ :resolution#300: \ :maximumPages#1: \ :paperSize="5x5 inches" 1500 1500: \ :paperSize="8x8 inches" 2400 2400: \ :paperSize="Unlimited" 72000 72000:
This is primarily intended for printing from schematics and layout - this entry just defines a "printer" for outputting EPS.
In reply to Andrew Beckett:
Can you site me some example on how to setup .cdsplotinit to save waveform window to a *.png?
Actually my target is to save the window waveform in *.png or *.jpg file just like doing File>save image in ViVA. But in my case I want to do this in SKILL.
Thanks and Regards,
In reply to Reinice:
You do not need to put anything specific in the .cdsplotinit to save to png or jpg. You just have to have a .cdsplotinit existing - as I said, this is a rather odd need, but it's because the OCEAN interface to producing an image is performed via the printing API - even though it doesn't actually using the printing capability within ViVA at all.
We are considering separating the API to save images from the hardCopy() function - the problem is that we're overloading both printing and saving of images into a single API, which over-complicates things. This is a historical decision, but with the increased flexibility we have in IC615 for saving images, it is making less sense now.
So, if you use the .cdsplotinit I provided above - or indeed any .cdsplotinit - you will be able to save images in any format using the SKILL API.
It's working now! Thanks a lot. But I notice that it only saves the active subwindow and not all subwindow in a current window. Is there function to save all subwindow? Also is there a setup to make it's background to white? To minimize the use of disk space.
You might find this solution useful.
I' am having some problem in accessing the link.
Do you have a support.cadence.com account? If so, the link should work. If you're from a customer on maintenance, you can get one using your license server hostid - otherwise if with a University, I believe that Europractice provides a mechanism for getting readonly accounts (no service request creation), and for other parts of the world I believe you can also have a support login (via whoever is responsible for the Cadence tools at your university).