Set Lines

Main Help  Table of Contents  Previous  Next

Set lines are used to set a variable to a specific value.  Sometimes a condition must be met before the value can be set, sometimes not.  Take a look at the example set lines below. 

 

Example #1:

Set, #FFmat=         3/4" Solid Wood        ,FACEFRAME MATERIAL

 

Example #2:

Set, #FinSideMat=    3/4" Finish Ply        ,FINISHED SIDE MATERIAL

 

       There are 3 fields in any Set line. All fields are separated by commas (,). A comma tells KCDw to go on to the next field. Spaces do not matter and can be placed anywhere but cannot be placed anywhere inside the #FFmat. Otherwise, spaces can be used if you wish to organize and make a line easier to read.

       In a Set line each field does something different. Looking at Example #1 the first field is the word Set. That tells KCDw that something is going to be set to a formula, number, or value.

The second field is  #FFmat=           ¾" Solid Wood. That tells KCDw anytime #Ffmat is used it is equal to ¾" solid wood. The benefit of this is that by making a change to this line, it can be changed in many different part files that affect different parts, you won't have to open each file and make multiple changes.

       If you want to change your material to read ¾" Solid Oak you would simply click to the right of the word WOOD on the example #1 line and hit your backspace key to erase the word Wood. You would now type in the word Oak. The line should now read:

 

Example #3:

Set, #FFmat=         3/4" Solid Oak        ,FACEFRAME MATERIAL

 

       The third and final field are the words FACEFRAME MATERIAL. That is a note or memo to you. This tells you that this line is used for setting your faceframe material.

 

 

Tip: Look to the far right of any Set line for the note. The note will tell you what that line is used for.

 

Example #4:

Set, (fl=y)&(lcb<=0):               #trimL=#finbot            ,Finished Left Side

      condition                         variable being set                 notes

 

       In this example, there is a condition, a condition is always followed by a colon (:).  In this example, the variable #trimL will be set to the value of the variable #finbot only if the condition is true, in this case, if fl (finished left)=y  AND lcb(left cut back) <= (less than or equal to) 0.  Check out the section on IF statements.

       Most of your set up can be done by changing SET lines. SET lines involve all the parts for cabinets, doors, and drawers. Most of the lines in the a-setup file are SET lines. The only thing that needs to be changed on a SET line is formula, variable, numbers, or words that are directly to the right of the equal sign (=). The rest of the line will function as is and doesn't need to be changed to set up your parts. Making a change in Section 1 from ¾" Plywood to ¾" Melamine (which would be directly to the right of the equal sign) is all you need to do on a SET line.

 

Links to other types of Set lines: HSETDisplaySetmDisplaySetSetOnly, SetRemove

 

Things to remember about SET lines:

Only change what is directly to the right of the equal sign (=)
It is a SET line if the word SET is at beginning of the line
Look at the third field at the end of the line for the note telling what that lines function is

 

 

 

Main Help  Table of Contents  Previous  Next

Copyright © 2007 KCDw Software