Michael Young System Administration / NC-Programming Dept. Burr Oak Tool & Gauge Co., Inc. Mailto:youngmw@burroak.com Ph:(616)651-9393 ext. 427 Fax:(616)651-4324 This executable is called two ways: setdeflp printer_name setdeflp -r I made this executable to make plotting from ME10 Version 8 done with the push of a menu button from Windows NT 4.0 only. Make sure that the Java Virtual Machine is installed from http://www.microsoft.com/msdownload/java/vm/3165/msjavx86.asp Inside the plotting macro set up all of the defaults needed for the plot like rotation, lineweights, b&w or color, turn off the printer manager dialog. set the printer_name RUN ("setdeflp "+Printer_name+" >errorfile") {check errorfile for error messages that might be encountered} PLOT_START RUN ("setdeflp -r") The first setdeflp command saves the current default printer in a registry entry that is used for that purpose when exiting Windows, searches for a networked printer of the name given(if not prints out an error), and changes the default printer to that. The second setdeflp command restores the default printer which was stored in the other registry entry. I do this because most people will have a default printer set up for document printing and this restores it for them. I have a macro file called plot.mac which has a basic macro has a stripped down version of our own macro for plotting. This macro is an outline of what you should it will not work correctly as I removed a lot from it. I only put it here to show how I used the setdeflp script. The list of files included are codebase.dat SetDefLp$ClassInfo.class SetDefLp.class SetDefLp.exe SetDefLp.java (the source code) SetDefLp.sln SetDefLp.sup SetDefLp.vjp readme (this file) Plot.mac