Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!mit-eddie!bloom-beacon!eru!luth!sunic!dkuug!daimi!epimetheus!erja From: erja@epimetheus.dk (Erik Jacobsen) Newsgroups: comp.lang.postscript Subject: Re: Test for nocurrentpoint Message-ID: <3440@daimi.dk> Date: 10 Oct 89 13:11:42 GMT References: <3439@daimi.dk> Sender: news@daimi.dk Reply-To: erja@daimi.DK (Erik Jacobsen) Organization: DAIMI: Computer Science Department, Aarhus University, Denmark Lines: 23 In article <3439@daimi.dk> I write: > >How can I test if there is no currentpoint, or the current path >is empty? I would like something like this: > > > thereisacurrentpoint { pathbbox ..... } > { ..... } ifelse The answer: To test if pathbbox executes with an error, you can do this: {pathbbox} stopped { ActionIfError } { ActionIfOk } ifelse Thanks to jlk@daimi.dk Erik -------------------------------------------------------------------- Erik Jacobsen, Computer Science Department, Aarhus University Ny Munkegade, Building 540, DK-8000 Aarhus C, Denmark Phone: +45 86127188, Telefax: +45 86135725, Home phone: +45 86169199 Internet: erja@daimi.dk, Ham-radio: OZ6KS