home *** CD-ROM | disk | FTP | other *** search
- REM @(#)CADKEY SOLIDS gerr.cdl 2.1 10/18/88
- REM
- REM "This program processes a graphical error file from "
- REM "SSHLR and allows the user to interactivly display bad points "
- REM "and lines and good points and lines. This is accomplished "
- REM "by selecting the various levels the data appears on. "
-
- LEVELS 1,1,6
- AUTO
- REDRAW
-
- array active[7] = {1,1,1,1,1,1,1}
-
- REM "Display Menu "
-
- :mainmenu
- getmenu "GERR: Choose option",\
- "DSP ALL", \
- "SER ERR", \
- "BD EDGES", \
- "GD EDGES", \
- "POLYGON", \
- "BD PTS1", \
- "BD PTS2", \
- "CLEAR ", \
- "DONE"
-
- REM "Process user input "
-
- on (@key + 3) goto getout,getout,mainmenu,,\
- display_all, \
- serious_errors , \
- bad_edges , \
- good_edges, \
- fixed_plates, \
- one_edges_only, \
- two_edges_only , \
- clear_levels, \
- getout
- goto mainmenu
-
- :display_all
- LEVELS 1,1,6
- REDRAW
- prompt "All data displayed"
- wait 2
- active[1] = 1
- active[2] = 1
- active[3] = 1
- active[4] = 1
- active[5] = 1
- active[6] = 1
- goto mainmenu
-
- :serious_errors
- if ( active[1] == 1 )
- goto offser
- LEVELS 1,1
- REDRAW
- prompt "Serious geometry errors turned on"
- wait 2
- active[1] = 1
- goto mainmenu
- :offser
- LEVELS 0,1
- REDRAW
- prompt "Serious geometry errors turned off"
- active[1] = 0
- wait 2
- goto mainmenu
-
- :bad_edges
- if ( active[2] == 1 )
- goto offbedge
- LEVELS 1,2
- REDRAW
- prompt "Edges not incorporated into design turned on"
- wait 2
- active[2] = 1
- goto mainmenu
- :offbedge
- LEVELS 0,2
- REDRAW
- prompt "Edges not incorporated into design turned off"
- wait 2
- active[2] = 0
- goto mainmenu
-
-
- :good_edges
- if ( active[3] == 1)
- goto offgedge
- LEVELS 1,3
- REDRAW
- prompt "Edges incorporated into design turned on "
- wait 2
- active[3] = 1
- goto mainmenu
- :offgedge
- LEVELS 0,3
- REDRAW
- prompt "Edges incorporated into design plates turned off "
- wait 2
- active[3] = 0
- goto mainmenu
-
- :fixed_plates
- if ( active[4] == 1 )
- goto offfixed
- LEVELS 1,4
- REDRAW
- prompt "Edges of user defined polygons turned on"
- wait 2
- active[4] = 1
- goto mainmenu
- :offfixed
- LEVELS 0,4
- REDRAW
- prompt "Edges of user defined polygons turned off"
- active[4] = 0
- wait 2
- goto mainmenu
-
- :one_edges_only
- if ( active[5] == 1 )
- goto offone
- LEVELS 1,5
- REDRAW
- prompt "Points assigned to one edge only turned on"
- wait 2
- active[5] = 1
- goto mainmenu
- :offone
- LEVELS 0,5
- REDRAW
- prompt "Points assigned to one edge only turned off"
- wait 2
- active[5] = 0
- goto mainmenu
-
- :two_edges_only
- if ( active[6] == 1 )
- goto offtwo
- LEVELS 1,6
- REDRAW
- prompt "Points assigned to two edges only turned on"
- wait 2
- active[6] = 1
- goto mainmenu
- :offtwo
- LEVELS 0,6
- REDRAW
- prompt "Points assigned to two edges only turned off"
- wait 2
- active[6] = 0
- goto mainmenu
- :clear_levels
- LEVELS 0,1,256
- REDRAW
- prompt "All selections cleared "
- wait 2
- active[1] = 0
- active[2] = 0
- active[3] = 0
- active[4] = 0
- active[5] = 0
- active[6] = 0
- goto mainmenu
-
- :getout
-