![]() |
Pspice Tips |
Importing into Word |
Install a new postscript printer, an Apple Laser Writer is fine. Right click and select properties. Select the details tab and set the 'print to the following port' box to FILE: for now. Rename this WMF or what ever you prefer.
Install Ghostscript which is a program for viewing and converting postscript. I suggest you take the GSview package which includes Ghostscript and , the GUI front end. Run GSview and configure it.
Install GSview which is a gui front end for ghostscript. Install PStoEdit, a program that works with GS to convert postscript files.
Now lets test this so far. Open an application and print a picture to printer WMF. A box should pop up asking you for a file name. Enter c:\test.ps. Now run GSview and open c:\test.ps. You should see the picture. In GSview select Edit, Convert to Vector Format. Highlight windows metafile format and click ok. Click the ok for page 1 on the page selector popup. Enter the file c:\test.wmf in the save box the popups and click ok. In MS Word, select insert picture from file and select c:\test.wmf. Word should now have your picture (if this doesn't look right don't worry yet). The next step is to automate this.
Install a Generic Text printer. Right click and select properties. Select the details tab and set the 'print to the following port' box to FILE:. Rename this File or again what ever you prefer.
Install RedMon a port redirector program by unzipping the files to a new directory and running setup in that directory.
Select the WMF printer you created and right click. Select properties and then the details tab. In the 'print to this port' box select the redirected port (usually RPT1:). If a redirected portis not listed then use the Add Port button to create one.
Click the Port Settings button. The program box should be pointed to Redrun.exe which will be in your Redmon
directory. The arguments box should point to pstoedit.exe followed by -scale 8 -flat 0.05 -f wmf %%1 %1. So on my PC the boxes are
That's all there is to it :-). If any of this is not clear, look at the examples in RedMon's help file which has pictures of the setup boxes as well. The -scale 8 -flat 0.05 options are to improve the picture. WMF format uses integers where as postscript uses floating points. The conversion to integer can result in distortion of the graphics so to minimise this the paper is scaled up first. The other options, -flat 0.05 are not so significant as they just force the step size in converting curves and the positioning of text (BTW text is always printed in black).
For those who want to know what is happening, what you are doing is printing your picture to postscript which Redmon is redirecting to stdin to Redrun. Redrun is catching this and putting the postscript in a temporary file. Then Redrun calls PStoEdit to convert the postscript file into a windows metafile and gives PStoEdit its temporary file name and the temporary file name that RedMon has allocated. After PStoEdit finishes, Redrun deletes its temporary file and quits. Redmon then send its temporary file, PStoEdit's output, to the Generic Text (file) printer which does nothing more than save it to a filename of your choosing.
To change the orientation of the end result you need to change the printing from portrait to landscape or vice versa. This can be a bit tricky in Pspice, Schematics and Probe, as there are two places to do this, page setup and printer setup. If you change the printer setup then the page setup changes next time round making for lots of confusion. The best bet is to change the page setup, which will also change the printer setup, then print.
There are a few format issues for which I have created fixes. As well as the files in the fixes zip you also need MTR from MiniTrue site and ttf2pt1.
These fixes are run from a batch file which I call go.bat so the port settings boxes (on my PC) are:
There is another bit of software that's useful, that is a one click printer changer. The program sits in the tray and makes it easy to swap printers, very useful when you use the method above to import plots and schematics.
For those still going the HPGL route, printer changer also includes 'fix HPGL' as a menu option to fix the large file HPGL bug (where bits disappear), just to make life easy. If you have Word 97 you will need the Word 97 HPGL import filter from Microsoft as it is not on the CD.
Copying Schematics |
Transmission Lines |
BTW so far I have not tested to see if either of these transmission line problems have been fixed in version 8 or 9.
Plot Blue Screen Crash |
Parts LED Modelling Bug |
| Full Circuit Ltd - for all your electronics | {Home: | www.fullcircuit.com} | |
| designer / engineer / consultant needs | {Email: | mreeves@fullcircuit.com} |