|
SetOnly Lines |
Main Help Table of Contents Previous Next |
|
SetOnly lines are similar to Set lines, because of this you will want to read that section first. They set a variable to a specific value. If you were changing a variable based on specific conditions that could change from cabinet to cabinet you might want to consider setting up a seperate file in which you could use the SetOnly line. A good example of the SetOnly line is used in the Door-Memo.prt file. This is a good example because of how and why it is used. The Door-Memo.prt file was set up so that we could print a memo on the door part line specific to the door that was on the cabinet. There are many doors in KCDw and you have the ability to use up to 9 doors per each job, so to come up with a unique memo for each door would be quite a task without the SetOnly line. How the SetOnly line works to create a unique door memo for each of the doors in the program is this: just before the Part line for the door is read in KCDw, the Door-Memo.prt file is loaded, once the file is loaded it reads each SetOnly line until it evaluates a line that is true, once a true line is read, the variable gets set to the appropriate value then exits the file and resumes evaluating the rest of the job. An example from the frameless cut list is below:
Example #1: SetOnly, (#xThisDoor=@ARP): #xMemoDoor=Arch Raised Panel (condition) (variable being set)
SetOnly lines are almost exactly like Set lines- they perform the same function of setting a variable, they use commas to seperate the fields of the SetOnly line, the big difference is that KCDw will exit the file once it has found a SetOnly line to be true or it has come to the end of the file.
|
| Main Help Table of Contents Previous Next |