home *** CD-ROM | disk | FTP | other *** search
- ' This is the fourth macro in the 600 series, which is only launches
- ' by the first program if the 600.txt data file is not present in
- ' the DesignCAD Sample Macros folder.
- '
- ' After it prompts users for the data, and saves the results to the
- ' data file, it chains to the small area box program, 600_2_Area.
- ' Prompt user for Additional Length
- Sys$(41) = "Add to Length Meters? . . ."
- Input "How Much Additional Length? . . . (Enter for None)", AddLen
- '
- ' Check for Exit Condition on Input box
- if Sys(999) = 1 then
- Message "Program Stopped by User."
- End
- endif
- ' Prompt user for text height
- Sys$(41) = "Text Height . . ."
- Input "Enter the Text Height for the Info Box . . . (Enter = 1)", TH
- ' Check for Exit Condition on Input box
- if Sys(999) = 1 then
- Message "Program Stopped by User."
- End
- endif
- ' Check for valid entries
- if TH = 0 then TH = 1
-
- ' Prompt user for Panel Reduction
- Sys$(41) = "Panel Subtraction . . ."
- Input "Subtract how many Panels?, (Press Enter for None)", PanNum2
- ' Check for Exit Condition on Input box
- if Sys(999) = 1 then
- Message "Program Stopped by User."
- End
- endif
- ' # of Panels per Carton based on Room Type
- Sys$(41) = "Panels per Carton. . ."
- Input "Panels per Carton?, (Press Enter = 10)", PanNum4
- ' Check for Exit Condition on Input box
- if Sys(999) = 1 then
- Message "Program Stopped by User."
- End
- endif
- Precision 0
- if PanNum4 = 0 then PanNum4 = 10
- Close #1
- open "o", 1, "*\sample macros\600.txt"
- ' Write Values from ABOVE to file
- Print #1, AddLen
- Print #1, TH
- Print #1, PanNum2
- Print #1, PanNum4
- ' Close ASCII text file
- Close #1
- '
- ' Finished getting values from user, and writing them to the text file
- ' ready to create small area box
- Chain "600_2_Area.d3m"
-