home *** CD-ROM | disk | FTP | other *** search
- %asmbl.ccc
- * create new file from selected entities, replace selection group by the file
- *NEW* 31/3/92 Rachel
- :w
- * check geometric mode activity (c100=' ')
- ascii c100 r13
- if r13 eq 32 :a
- mess illegal command, use \GEOM first !
- getwe
- goto :w
- :a
- mess name of extract file (1-8 char.)
- :b
- getc c1 8
- ascii c1 r1
- if r1 eq 32 :t
- c80=' '
- c81 3 ='iii'
- c85 =' '
- r80=1
- r83=0
- r88=1
- command chkfil
- if r83 eq 0 :g
- :t
- mess Error, invalid file name, enter name again :
- goto :b
- :g
- if r80 eq 0 :e
- if r89 eq 1 :e
- r1=0
- mess file " #c1 8 " already exists, wish to overwrite ? <n>
- def 'n'
- getyn r1
- if r1 eq 0 :a
- :e
- mess new origin point (<ENTER> for no change)
- p1=0 0 0
- getp+ p1
- if r93 eq 0 :f
- r93=999
- :f
- c9='e'
- ovl dumb
- i49=1
- *mess wish to delete the extracted entities from source file ? <n>
- r7=1
- *r7=0;*def 'n'
- *getyn r7
- if r7 eq 0 :o
- r2=999
- *--erase the selection group.
- savep
- c1='2'
- r2=0
- ovl dele
- if r2 eq 0 :N
- c1='d'
- ovl mwdel
- r2=0
- if r1 ne 100 :E
- r2=100
- r1=99
- :E
- if r1 ne 99 :C
- c1='R'
- ovl $wfix
- if r2 ne 100 :X
- if r1 ne 0 :X
- r1=98
- :C
- if r1 eq 98 :D
- goto :X
- :D
- c1='D'
- ovl regarc
- :X
- if r1 eq 0 :N
- if r1 eq 1 :1
- if r1 eq 3 :3
- if r1 eq 4 :4
- :1
- mess illegal operation, problem in data base
- getwe
- goto :Z
- :3
- mess could not create wall entities file
- getwe
- goto :Z
- :4
- mess could not open wall entities file
- getwe
- goto :Z
- :N
- restp
- * ----end selection group.
- :o
- c20='a'
- r1=0;
- * load the file
- r2 = 0
- c10 = 'j'
- ovl rdumb
- if r2 lt 0 :y
- goto :z
- :y
- mess unable to access the extracted file (press <ENTER>)
- getwe
- goto :Z
- :z
- *if r93 eq 999 :Y
- if p1 eq p2 :Y
- c9=c8;c8=c7;c7=c6;c6=c5;c5=c4;c4=c3;c3=c2;c2=c1
- c1='7'
- p2=0 0 0
- ovl movret
- :Y
- * place the extract file
- r1=1;r2=1;r3=1
- c1=c2;c2=c3;c3=c4;c4=c5;c5=c6;c6=c7;c7=c8;c8=c9
- c9='1'
- ovl place
- :Z
-