home *** CD-ROM | disk | FTP | other *** search
- %spirl.ccc
- :J
- if x8 eq 123123123 :b
- ascii c100 r13
- if r13 eq 32 :I
- mess illegal command, use \GEOM first !
- getwe
- goto :J
- :I
- z41=14
- mess flight center point
- getp p2
- mess direction point of first step
- rubber line
- getp p1
- rubber off
- :9
- mess flight inner radius (greater than 0)
- getrd y6
- if y6 le 0 :9
- :a
- r4=0.6
- mess flight width (minimum: fl #r4 )
- getrd r4
- if r4 lt 0.6 :a
- :b
- r7=0
- mess 1st prm.: 1-Rise,2-Tread,3-Ht.,4-Tot.A°,5-End pt.,6-No.,7-St.A°
- :P
- getr r10
- if r10 eq 1 :[
- if r10 eq 2 :A
- if r10 eq 3 :B
- if r10 eq 4 :C
- if r10 eq 5 :D
- if r10 eq 6 :E
- if r10 eq 7 :F
- goto :b
- :[
- c209='r'
- mess rise of stair (R)
- getrd r1;c209=' '
- if r10 ne 1 :z
- :1
- mess second parameter: 3-Height, 4-Total Angle, 5-End pt., 6-No.
- getr r9
- if r9 eq 3 :B
- if r9 eq 4 :C
- if r9 eq 5 :D
- if r9 eq 6 :E
- goto :1
- :A
- c209='t'
- mess tread of stair (T)
- getrd r2;c209=' '
- if r10 ne 2 :z
- goto :1
- :B
- mess flight total height (H)
- getrd r3
- if r10 ne 3 :z
- :3
- mess second parameter: 1-Rise, 2-Tread, 6-No., 7-Stair Angle
- getr r9
- if r9 eq 1 :[
- if r9 eq 2 :A
- if r9 eq 6 :E
- if r9 eq 7 :F
- goto :3
- :C
- mess flight total angle (greater than 0)
- getr r8
- if r8 lt 0 :C
- if r10 ne 4 :z
- goto :3
- :D
- mess flight end pt.
- getp p3
- if r10 ne 5 :z
- goto :3
- :E
- c209='n'
- mess total number of stairs (N) (greater than 3)
- getr r5;c209=' '
- if r5 lt 4 :E
- if r10 ne 6 :z
- :4
- mess second parameter:1-Rise,2-Tread,3-Ht.,4-Tot.A°,5-End pt.,7-St.A°
- getr r9
- if r9 eq 1 :[
- if r9 eq 2 :A
- if r9 eq 3 :B
- if r9 eq 4 :C
- if r9 eq 5 :D
- if r9 eq 7 :F
- goto :4
- :F
- mess single stair angle
- getr x6
- if x6 le 0 :F
- if x6 gt 90 :F
- if r10 ne 7 :z
- goto :1
- :z
- i50=1
- ovl sprlpr
- i50=0
- x41=r1;y41=9999
- ovl ermes
- y41=0;r1=x41
- if r7 gt 0 :Y
- if r12 eq 1 :G
- :H
- mess R- fl #x9 T- fl #y9 H- fl #z9 A°- #x6 Tot.A°- #r8 N- #r5 , confirm?
- goto :]
- :G
- mess ~ R- fl #x9 T- fl #y9 H- fl #z9 A°- #x6 Tot.A°- #r8 N- #r5 , confirm?
- :]
- getyn r8
- if r8 eq 0 :b
- :U
- mess thickness of step, <ENTER>-max. thickness
- getrd r7
- if r7 lt 0 :U
- :V
- mess handrail: 1-internal, 2-external, 3-both, 4-none <3>
- z6=3;def z6
- getr z6
- if z6 lt 1 :V
- if z6 gt 4 :V
- if z6 eq 4 :W
- mess balusters: 1-middle of step, 2-step end, 3-none <1>
- x7=1;def x7
- getr x7
- :W
- mess wish to add center column ?
- getyn z7
- mess climbing direction: y-clockwise, n-counter clockwise
- getyn r13
- mess draw option: y-3d, n-2d
- getyn r35
- if r35 eq 0 :5
- r35=0
- goto :6
- :5
- r35=1
- :6
- ovl spiral
- *if r1 eq 0 :0
- *mess entities file not found, use \REGEN
- *getw
- :0
- if r35 eq 1 :7
- if z7 eq 0 :Z
- goto :8
- :7
- if z7 eq 0 :Z
- y7=99999
- :8
- p1=p2;p15=p1;c1='1';c2=' ';ovl bsurf;i49=1;c1='2';r8=y6;x1=x15+r8;ovl bsurf
- setj p1;y2=y15+r8;p2=x15 y2 z15;x3=x15-r8;p3=x3 y15 z15;c1='8';ovl bsurf
- setj p1;y2=y15-r8;p2=x15 y2 z15;x3=x15+r8;p3=x3 y15 z15;c1='8';ovl bsurf
- if y7 eq 99999 :r
- if y7 ne 0 :M
- y7=r3+1
- goto :R
- :M
- y7=y7-z15
- goto :R
- :r
- y7=0
- :R
- p1= 0 0 0;p2= 0 0 y7;r90=1;c1='5';i1=i18;ovl bsurf;setj p15
- :Z
- macro strcs
- :Y
- x8=123123123
- macro strer