home *** CD-ROM | disk | FTP | other *** search
- /*****************************************************************************/
- /* */
- /* BlueCAD REXX Macro */
- /* */
- /* Example of the use of REXX macro in BlueCAD */
- /* */
- /* (c) 1995 CadWare s.r.l. */
- /* */
- /*****************************************************************************/
-
- call CADCmd deldraw
-
- step = 0
- i = 0
- col = 1
- do while i < 21
-
- if col > 15 then col = 0
- /* Modifies the current color */
- call CADAttSet 'color', col
- /* Creates the segments */
- call CADCrSegm step,0,2000,step
- call CADCrSegm 0,step,step,2000
- /* Increments the counters */
- i = i + 1
- step = step + 100
- col = col + 1
- end
- /* Optimal view of the drawings */
- call CADCmd 'viewall'
- /* Sets the rotation transformation */
- call CADCmd 'rotapoint 1000,1000 10'
-
- /* Move command execution loop */
- i = 0
- do while i < 9
- call CADCmd 'move sall'
- i = i + 1
- end
-
- step = 0
- i = 0
- col = 1
- do while i < 21
-
- if col > 15 then col = 0
- /* Modifies the current color */
- call CADAttSet 'color', col
- /* Creates the segments */
- call CADCrSegm step,0,2000,step
- call CADCrSegm 0,step,step,2000
- /* Increments the counters */
- i = i + 1
- step = step + 100
- col = col + 1
- end
-
- /* Setting color 1 at the end of the procedure */
- call CADAttSet 'color', 1
-
- /* Reading Warp logo */
- call CADCmd 'bmpmerge c:\os2\bitmap\os2logo.bmp 750,750'