Path: utzoo!attcan!uunet!samsung!think!snorkelwacker!bloom-beacon!primerd!choinski From: choinski@primerd.prime.com Newsgroups: comp.sys.amiga Subject: Re: VLT problem: TEK screen to PS file Message-ID: <31100008@primerd> Date: 21 Nov 89 16:01:00 GMT References: <25697@<1035> Lines: 45 Nf-ID: #R:<1035:-2569700:primerd:31100008:000:1886 Nf-From: primerd.prime.com!choinski Nov 21 11:01:00 1989 [Lineaters...very dangerous...you go first!] ||myb100@csc.UUCP (Markus Buchhorn) asks: || ||My PS interpreter produces a `nocurrentpoint' error at a `show' statement. || ||What follows is part of the PS header which defines the commands: || ||/m {stroke newpath moveto} bdef ||/d {lineto} bdef ||/p {stroke newpath moveto domark} bdef ||/s {stroke newpath show} bdef ^^^^ this is the problem ||0 3068 m (I) s | ||52 3068 m (N) s | ||104 3068 m (P) s |---- This is the text which causes problems. ||156 3068 m (U) s |---- (remove it => no errors) ||208 3068 m (T) s |---- and is the only place where the `s' is used ^^ see text below In postscript, before you do a show, you must provide a current point thourgh the use of a "moveto" command. The "m" function as defined "uses up" the current point you last set. Try either inserting another set of coordinates like: 208 3068 m 208 3068 (T) s and that will solve the problem (although you may requre different coordinates then the ones I have provided here) Other problems exist, though. ||I find (i) newpath wipes the path, (ii) stroke wipes the path and ||(iii) show comes straight after these commands. This doesn't make any ||sense to me, however, I'm not a PS guru. I admit, I am baffeled as to why the rest of your code doesn't croak when it does the "m" commands. Something is scrod in your interpreter. -============================================================================- Burton Choinski choinski@env.prime.com Prime Computer, Inc. (508) 879-2960 x3233 Framingham, Ma. 01701 Disclaimer: Hey, not me man; musta been my evil twin. -============================================================================-