So I have made an enclosure and used ilogic to change the size, pretty basic. But everytime I unsupress the rule it changes the parameters length,width and height to 0 and wont let me change them. The code is here:
Length = ilength Width = iwidth Height = iheight 'Bottom Parameter("Bottom:1", "Length")=ilength Parameter("Bottom:1", "Width")=iwidth 'Back wall Parameter("Back Wall:1", "Height")=iheight Parameter("Back Wall:1", "Width")=iwidth 'Top Parameter("Top:1", "Length")=ilength Parameter("Top:1", "Width")=iwidth 'Side Panels Parameter("Side Panel:1", "Height")=iheight Parameter("Side Panel:1", "Length")=ilength 'Middle Wall Parameter("Middle Wall:1", "Height")=iheight Parameter("Middle Wall:1", "Width")=iwidth
Any help would be greatly appreciated
Solved! Go to Solution.
Solved by rjay75. Go to Solution.
Length = ilength Width = iwidth Height = iheight
What is ilength, iwidth, iheight? Are they parameters or just variables? If they are just variables they're default value when the rule runs is 0. Where are the values set at?
They are just variables, Length, Width, and Height are the user parameters which can be set in either a from or in the parameters menu
Then at the very beginning you are setting your parameters to 0 when the rule starts. The variables have a default value of 0 and you're not setting a value to them.
It should look like this at the beginning
ilength = Length iwidth = Width iheight = Height
Then you're setting the variables to the values of the parameters at the start.