I have taken the Archicad Roof Maker library and copied it to my own custom library. I have removed the calculations that were created by the part already. I want to create a variable similar to what has already been done, but I want the calculation to show up in the new variable using a parameter script so that I can use it in a IF THEN statement in the properties script. I have thought about pythagora's theory and SOHCAHTOA, but I cannot find a formula that will place the calculated value in the varible I have created. Should the variable be a text, integer, or a real number? Any ideas would be greatly appeciated. Thanks.