home *** CD-ROM | disk | FTP | other *** search
- %atsel.ccc
- * select/de-select all entities with attribute/attribute+value.
- *$Header$
- *$Log$
- :j
- * check geometric mode activity (c100=' ')
- ascii c100 r13
- if r13 eq 32 :a
- mess illegal command, use \GEOM first !
- getwe
- goto :j
- :a
- mess option: y-select, n-deselect <y>
- def 'y'
- getyn r8
- :f
- c211 1 = ' '
- mess define attribute by: y-name & value, n-name <y>
- def 'y'
- r1=1
- getyn r1
- if r1 eq 0 :b
- :g
- mess name & value of attribute (3-20 char.: name=value)
- ascii c211 r9
- r37=0
- if r9 eq 32 :h
- *def c211 20
- r37=1
- :h
- *getc c211 20
- r38=20
- r39=211
- r1=0
- ovl getc
- if r1 ne 0 :g
- ascii c211 r9
- if r9 eq 32 :g
- if r8 eq 0 :i
- c1='o';* add
- goto :d
- :i
- c1='p';* omit
- goto :d
- :b
- mess name of attribute (1-20 char.)
- ascii c211 r9
- r37=0
- if r9 eq 32 :k
- r37=1
- *def c211 20
- :k
- *getc c211 20
- r38=20
- r39=211
- r1=0
- ovl getc
- if r1 ne 0 :k
- ascii c211 r9
- if r9 eq 32 :b
- if r8 eq 0 :c
- c1='q';* add
- goto :d
- :c
- c1='r';* omit
- :d
- r2 = 0
- ovl select
- if r2 eq 0 :e
- mess no entities with this attribute ! press<ENTER>
- getw
- :e
- mess press <ENTER> for another attribute
- getw
- if r1 eq 1 :z
- repeat :b
- :z
- repeat :g
-