|
| MAS ETH ARCH/CAAD - 2005/06 - STUDENT PAGES Master of Advanced Studies in Architecture, Specialization in Computer Aided Architectural Design | 065-0005/6 Supervision: Prof. Dr. Ludger Hovestadt, Philipp Schaerer Chair of CAAD, ETH Zurich mini-assignment 2vectorscript
skript 01Procedure mtMoveStandard; VAR px,py : REAL; moveDX, moveDY : REAL; x1, y1, x2, y2 : INTEGER; BEGIN; REPEAT UNTIL MouseDown(x1,y1); sysBeep; REPEAT UNTIL MouseDown(x2,y2); sysBeep; MoveObjs(x2-x1, y2-y1, TRUE,FALSE); END; run (mtMoveStandard); skript 02Procedure mtMoveDeluxe; VAR x1, y1, x2, y2 : INTEGER; Sel : LONGINT; HandLay : HANDLE; BEGIN HandLay := ActLayer; Sel := NumSObj (HandLay); IF (Sel = 0) THEN BEGIN AlrtDialog('No objects selected!') END ELSE BEGIN; GetLine(x1,y1,x2,y2); MoveObjs(x2-x1, y2-y1, TRUE,FALSE); END; END; run (mtMoveDeluxe); -- NDSMartinTann - 09 Nov 2005
|
This website has been archived and is no longer maintained.