Plots to file from schematic editor

dmsflow@yahoo.com (John Gianni) wrote:

It has been a long time since I've touched this, but, maybe this
unfinished rough-draft quicknote in the Cadence AE archives may
be of some use to you. Please improve upon this & let the USENET
know your results if you do (so we all benefit from your effort).
John Gianni

############################################################################
# Color EPS suitable for import into MS Word & see a TIFF preview
online:
############################################################################
[snip]

:EPSPreviewType=TIFF: \
:EPSPreviewTIFFCprt="": \
:EPSPreviewType=none: \
:EPSPreviewByteOrder=BigEndian: \
[snip]

# Q: Why does this PS entry not create a MS Word TIFF preview image?
############################################################################
I removed the ":EPSPreviewType=none: \" line and it generates previews
fine. The ":EPSPreviewByteOrder=BigEndian: \" line doesn't seem to
have any effect (I tried changing it to LittleEndian).

Cheers,

Roger
 
Andrew Beckett <andrewb@DELETETHISBITcadence.com> wrote in message

In theory it should be possible to set up "raptor" (covered in the plotting
documentation) to plot a CPIF file out of DFII which gets fed into raptor with
the PNG output filter to produce a PNG (portable network graphic) file.
We don't appear to have a raptor PNG output filter here (although
perhaps I misunderstood what you meant), but I have been playing
around and using Richard Griffith's post as a start I have
successfully used:

---
PNGOut|HP Office Jet D Color: \
:manufacturer=Hewlett Packard PCL: \
:type=intCLR: \
:spool=/eee/vlsi/Cadence/cdsPNG.sh: \
:maximumPages#1: \
:resolution#600: \
:paperSize="A4" 4758 6846 0 0:
---

as an entry for .cdsplotinit, with the following as cdsPNG.sh:

---
setenv PATH /opt/csw/bin:$CDSDIR/tools/plot/bin:$PATH
setenv file /var/tmp/cadPlot$$

cat - > $file

raptor -a -m color $file | XWDout > ${file}.xwd
convert -trim ${file}.xwd ~/plot.png
rm -f $file
rm -f ${file}.xwd
---

Where convert is one of the Image Magick ( http://www.imagemagick.org/
) tools.

Cheers,

Roger
 
You could combine the postscript .cdsplotinit entries and the hpjet to
output postscript and then feed it to a "spool" command that created a
pdf file.
As the responses have indicated, most likely you'll write a shell
or perl script to run the pdf conversion.

However, there's another way which is totally automatic.
No scripts whatsoever to write!

a) Install the Adobe Acrobat Distiller & tell it to 'watch' a directory.

b) Then, simply placing any number of PostScript files into the
watched directory (thousands at a time if you desire),
will AUTOMATICALLY distill any number of PostScript plots to PDF.

c) A log file will log the events.

Nothing could be simpler.
John Gianni
--
Nothing I say is sanctioned by my employer; see you all at DAC!
 
You could combine the postscript .cdsplotinit entries and the hpjet to
output postscript and then feed it to a "spool" command that created a
pdf file.
Thank you!
It works with the following:
in .cdsplotinit

SaveAsPDF|PDF, PS:\
:manufacturer=Adobe: \
:type=postscript2: \
:resolution#600: \
:maximumPages#1: \
:paperSize="A4" 4688 6806 160 130: \
:spool=/pathtoskript/cds2pdf:

in cds2pdf:

#!/bin/csh
cat - > /tmp/cdsplot.ps
ps2pdf /tmp/cdsplot.ps ~/cdsplot.pdf
/bin/rm -f /tmp/cdsplot.ps

My stupid error, not having it working right away, was not setting
executable permissions to the file :-(
But afterwards it works fine.
Regards Harald
 
Roger Light wrote:

dmsflow@yahoo.com (John Gianni) wrote:


It has been a long time since I've touched this, but, maybe this
unfinished rough-draft quicknote in the Cadence AE archives may
be of some use to you. Please improve upon this & let the USENET
know your results if you do (so we all benefit from your effort).
John Gianni

############################################################################
# Color EPS suitable for import into MS Word & see a TIFF preview
online:
############################################################################


[snip]


:EPSPreviewType=TIFF: \
:EPSPreviewTIFFCprt="": \
:EPSPreviewType=none: \
:EPSPreviewByteOrder=BigEndian: \


[snip]


# Q: Why does this PS entry not create a MS Word TIFF preview image?
############################################################################

I removed the ":EPSPreviewType=none: \" line and it generates previews
fine.
This doesn't seem to work on Linux however. The eps file has obviously
got a preview included (due to the file size), but it won't display in
Word. Comparing eps files of the same schematic from Solaris and Linux
show they are different sizes.

This is on IC 5.0.0.32 on Redhat Linux 8.

Cheers,

Roger
 

Welcome to EDABoard.com

Sponsor

Back
Top