home *** CD-ROM | disk | FTP | other *** search
- input "What do you want to call the output file?" o$ 'gets destination
- open "o", 1, o$ 'opens output drive
- input "Find x, y, and z of only selected entities?" t$ 'gets if user wants only entities
- 'if selected
- r$=LEFT$(t$, 1) 'Just gets the y or n of yes or no
- count = sys(9) 'gets number of entities
- For i = 1 To count 'gets each entity one at a time
- entity (i) 'initialize entity
- s=sys(96) 'checks if selected
- if r$ = "y" then r$ = "Y" ' initializes capitialization so
- if r$ ="n" then r$ = "N" 'user doesnt have to
- if r$ = "Y" then 'if only selected entities
- if s=1 then 'only those selected
- print #1," " 'puts a space between entities
- ' get all points into jx, jy, jz
- for j = 1 to sys(1) 'and prints them out
- pointval jx jy jz j
- print #1, jx,jy,jz
- next j
- endif 'ends selected if
- endif 'ends yes if
- if r$ = "N" then 'if all entities wanted
- print #1," " 'blank line
- ' get all points into jx, jy, jz
- for j = 1 to sys(1) 'and prints them out
- pointval jx jy jz j
- print #1, jx,jy,jz
- next j
- endif 'ends no if
- next i 'loops till all entities done
-