home *** CD-ROM | disk | FTP | other *** search
- %pflt.ccc
- * create a fillet between two lines of polygon
- :j
- ascii c100 r13
- if r13 eq 32 :i
- mess illegal command, use \GEOM first !
- getwe
- goto :j
- :i
- r1=0
- mess radius of fillet (greater than 0)
- getrd r1
- if r1 le 0 :i
- r6=r1
- :L
- mess polygon to create fillet in
- gete i1
- mess confirm choice
- getyn r2
- unshow i1
- if r2 eq 0 :L
- i2=i1
- i1=1;r5=1
- ovl aspol
- if r1 lt 0 :E
- if r5 eq 0 :1
- *mess the polygon cannot be reassembled, continue to explode ?
- *getyn r1
- *if r1 ne 0 :1
- *goto :L
- :1
- i1=1;r5=0
- ovl aspol
- if r1 ne 0 :y
- :P
- sbreset
- mess first line of fillet, <Enter>- to exit
- gete+ i1
- if r93 ne 0 :J
- mess confirm choice
- getyn r7
- unshow i1
- if r7 eq 0 :P
- :D
- mess second line of fillet
- gete i2
- mess confirm choice
- getyn r2
- unshow i2
- i8=i2
- if r2 eq 0 :D
- r1=r6
- c197='*';c198 = '*'
- ovl filet
- repeat :P
- :J
- i3=-1
- r2=0
- r3=0
- i1=5
- ovl aspol
- i1=2
- ovl aspol
- if r1 eq -1 :m
- if r1 eq -2 :m
- if r1 eq -3 :m
- if r1 eq -4 :m
- if r1 eq -9 :y
- r1=1
- i1=5
- ovl aspol
- if r1 ne 0 :s
- i1=4
- ovl aspol
- if r1 eq -1 :m
- if r1 eq -2 :m
- i18=i3
- i2=i18;ovl sp
- i49=1
- sbreset
- repeat :L
- :E
- if r1 eq -1 :a
- if r1 eq -2 :b
- if r1 eq -3 :c
- if r1 eq -4 :d
- if r1 eq -5 :e
- if r1 eq -6 :f
- :y
- mess System Error (ASPOL, rc = #r1 )
- getwe;goto :L
- :a
- mess Error, entity selected not a polygon
- getwe;goto :L
- :b
- mess Error, couldn't read the polygon
- getwe;goto :L
- :c
- mess Error, couldn't create arc
- getwe;goto :L
- :d
- mess Error, couldn't create line
- getwe;goto :L
- :e
- mess Error, polygon belongs to a solid entity
- getwe;goto :L
- :f
- mess Error, polygon has invalid application type
- getwe;goto :L
- :m
- mess Error, unable to create or update polygon
- getwe;goto :L
-