You could set up an item table to return the appropriate stud to an assembly based on the variable that asks about the stud size at takeoff.

image\it-1dim.gif