home *** CD-ROM | disk | FTP | other *** search
- %crot.ccc
- * update 21.6.92 free axis, 5.9.91 order of prompts
- * copy selected entities by rotation.
- :i
- * check geometric mode activity (c100=' ')
- ascii c100 r13
- if r13 eq 32 :a
- mess illegal command, use \GEOM first !
- getwe
- goto :i
- :a
- r4=0
- mess rotation axis-x,y,z, <ENTER>-free axis
- getc+ c2 1
- if r93 ne 0 :B
- ascii c2 r7
- if r7 lt 120 :a
- if r7 gt 122 :a
- r9=0;c18=c2
- mess center of rotation
- getp p1
- goto :b
- :B
- c1='5';c17=c1
- r9=1
- mess first point of axis
- getp p3
- mess second point of axis
- rubber line
- getp p4
- rubber off
- :b
- mess rotation angle (+/- 0-360)
- getr r5
- if r5 lt -360 :b
- if r5 gt 360 :b
- r2 = r5
- :c
- mess number of copies <1>
- r1=1
- def r1
- getr r1
- if r1 lt 1 :c
- if r9 eq 0 :C
- c2 8 = 'tempsave'
- c1='2'
- ovl autos
- i50=1
- c1=c17
- ovl crtgsm
- i50=0
- if r4 eq 0 :D
- mess could not create gsm file
- getwe
- goto :z
- :C
- c2 8 = 'tempsave'
- c1='2'
- ovl autos
- c1 = '2'
- :D
- c2=c18
- ovl copy
- if r4 ne 999 :d
- ovl copymw
- if r1 eq 100 :e
- if r1 eq 200 :e
- if r1 ne 300 :f
- :e
- ovl tupdt
- :f
- if r1 eq 0 :d
- if r1 eq 1 :1
- if r1 eq 3 :3
- if r1 eq 4 :4
- if r1 eq 6 :6
- :1
- mess Illegal operation, problem in data base
- getwe
- goto :z
- :3
- mess could not create temporary file
- getwe
- goto :z
- :4
- mess could not open temporary file
- getwe
- goto :z
- :6
- mess could not find T linked entity
- getwe
- goto :z
- :d
- mess keep the result ?
- getyn r1
- if r1 eq 0 :l
- goto :Z
- :l
- c2 8 = 'tempsave'
- c10=c117;c11=c118;c12=c119;c13=c120
- c14=c121;c15=c122;c16=c123;c17=c124
- c1='4'
- ovl autos
- c20 = 'n'
- r19 = (-1.)
- c19='l'
- * scale (when \nauto) with current position of origin.
- c26 = 'z'
- i15=1
- * no update of screen target.
- r67 = 0
- command scale
- i49=1
- :Z
- i49=1
- repeat :b
- :z