* Reloads active model from disc * $Id: REVERT.iuaproc,v 1.4 2002/02/12 12:03:51 AW03484 Exp $ * CVS note: before commit, remove all whitespace at end of line * with sed: s/\s\+$// * * Author: Ronny Buchmann * Copyright (C) 2001, Alfred Kaercher GmbH & Co. * * reload active model ("revert to saved") * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * internal INTEGER mnum INIT 1, % ier, % lorg INIT 78, % size INIT 0, % imode INIT 3, % jmdlo, % liden CHAR*4 method INIT 'FILE' CHAR*8 origin CHAR*70 origin2 CHAR*8 file CHAR*70 model, % ciden LOGICAL locc INIT FALSE, % draw INIT FALSE, % image INIT FALSE REAL xmat(12) INIT 1 0 0 0 1 0 0 0 1 0 0 0 * x y z o * 1 0 0 0 * 0 1 0 0 * 0 0 1 0 external proc * read file name LOAD GIMNAM mnum,file,model,ier * exit if file not saved IF (ier NE 0) BRANCH Lend LET origin = file LET origin2 = model LOAD G7MREA mnum,method,lorg,origin,locc,size,xmat,draw,imode,image, % jmdlo,liden,ciden,ier dump ************************ The End *************************************** LABEL Lend end