home *** CD-ROM | disk | FTP | other *** search
- %odrag.ccc
- :k
- ascii c100 r13;if r13 eq 32 :5
- mess illegal command,use \GEOM first!
- getwe;goto :k
- :5
- r6=777
- :s
- sbreset
- :j
- mess wall to insert opening
- gete i1
- mess confirm choice
- getyn r1;unshow i1;if r1 eq 0 :j
- c1='w';r1=0;ovl qow
- if r1 lt 0 :t
- if r1 eq 0 :q
- if r1 eq 2 :l
- r2=0;r10=0;c1='0';i4=0;c10=' ';c11=' ';c12=' ';ovl $rub
- if r1 eq 5 :w
- if r1 eq 0 :o
- goto :y
- :q
- mess Error, indicated entity is not a m.wall (press <ENTER>)
- getw;goto :s
- :o
- if r6 eq 111 :9;r6=111
- r9=r81
- mess option: y- rectangle-shaped, n- pre-designed opening <y>
- r4=1;def 'y';getyn r4;if r4 eq 1 :O
- :0
- c211 8=' '
- mess pre-designed opening name (<ENTER> for graphic lib.)
- :[
- getc+ c211 8;if r93 eq 0 :1
- r81=0;c221 8=' '
- mess user3@-l$3dopen
- ovl popmnu;if r81 eq 0 :0
- c211=c221;c212=c222;c213=c223;c214=c224
- c215=c225;c216=c226;c217=c227;c218=c228
- :1
- c80=' ';c81 3='iii';c85='A';r80=0;r82=0;r83=0;r88=211;command chkfil
- if r83 eq 0 :F
- mess Error, invalid file name, enter name again:
- goto :[
- :F
- if r80 eq 1 :G
- mess file " #c211 8 " does not exist, enter another name:
- goto :[
- :G
- if r82 eq 1 :O
- mess file " #c211 8 " is empty, enter another name:
- goto :[
- :O
- r81=r9
- if r81 gt 0 :m
- :7
- mess opening width (greater than 0)
- c9=c1;getrd r9;if r9 le 0 :7;c1='w';ovl $rub;c1=c9
- :m
- mess height of opening (0 or greater)
- getrd r8;if r8 lt 0 :m;if r4 eq 1 :6;r8=(-r8)
- :6
- mess height above floor (0 or greater)
- getrd r7;if r7 lt 0 :6
- :9
- r10=0;i7=0;i8=0
- mess opening position (Alt+1-change opening orientation,2-origin)
- r3=30.
- c1='r'
- trace $rub p1
- c1='1';ovl $rub
- :A
- if r2 eq 0 :C;r10=1;if r2 eq 99 :E;r10=2
- :E
- r2=0
- :C
- c1='c';ovl cut
- if r2 eq 0 :B
- mess Error, opening is BEYOND the wall, or OVERLAPS another!
- getwe;c1='r';goto :s
- :B
- if r10 eq 0 :b
- c1='1';c2=' ';ovl opncon
- if r1 ne 0 :z
- if r10 eq 2 :b
- mess solution acceptable?
- getyn r2;if r2 eq 0 :D
- c1='u';ovl $rub
- i4=0;goto :b
- :D
- c1='e';ovl $wfix
- if r1 ne 0 :z
- i4=1;c1='0';ovl $rub
- if r1 eq 0 :A
- if r1 ne 999 :y
- mess All options were introduced. wish to loop again?
- getyn r2;if r2 eq 0 :z;i4=2;c1='0';ovl $rub;i4=1;goto :A
- :b
- mess y-another position, n-another wall, <ENTER>-displacement
- getyn+ r1;if r93 ne 0 :Z;if r1 eq 0 :s;goto :9
- :Z
- i3=0
- mess start of displacement (fixed point in model)
- getp p1
- mess end of displacement (point on opening)
- rubber line;getp p2;rubber off;c1='?d';ovl cut
- :c
- mess displacement
- def fl r1;getrd r1;if r1 le 0 :c
- c1='m';ovl cut
- if r2 ne 0 :g;r5=r1
- :i
- if i3 ne 0 :h
- c1='r';ovl $wfix
- if r1 ne 0 :f;i9=i1;i1=i2;command refe;i1=i9;r1=r5
- repeat :b
- :h
- i8=i4;ovl updcon
- if r1 ne 0 :f
- c1='r';ovl $wfix
- if r1 ne 0 :f;i9=i1;i1=i3;command refe
- if i8 eq 0 :H;i1=i8;command refe
- :H
- i1=i9;r1=r5;repeat :b
- :g
- mess Error, opening is BEYOND the wall, or OVERLAPS another!
- getwe;repeat :c
- :l
- mess arc wall was indicated, please try again:
- getwe;goto :j
- :t
- mess Error, illegal operation
- getwe;goto :z
- :w
- mess Error, change to non-orthogonal mode.
- getwe;goto :s
- :y
- mess Error, opening or library was NOT found
- getwe
- :z
-