70melbatoast
2008-10-09, 03:14 PM
Boy that was a long, buried title. I hope I can get some direction here. From all that I've read, it seems that I will be unable to do what I need to, but I'd thought I'd try anyway.
I have a dynamic block of a pier. Said pier has 2 linear parameters, one in the X direction and one in the Y direction. With appropriate stretch actions associated with them that are set at a defined list of sizes. There are fields in an attribute attached to the block that will read the x and y dimensions and produce a result: 30"x30" CONC. PIER FOOTING. The size updates as the block is stretched. No problem, works great.
What I want to do is add the third dimension: 30"x30"x15" CONC. PIER FOOTING. I want the third dimension to equal half of the smallest side of the pier. So, the condition would look like this (I'll use X and Y to denote each side): IF(X<Y, X/2, Y/2)
Right?
Here's my syntax in the formula editor: IF ((UpdatedDistance<UpdatedDistance), (UpdatedDistance/2), (UpdatedDistance/2)) Where UpdatedDistance is an inserted BlockPlaceHolder field assigned to either the x or y parameter.Why it says UpdatedDistance and not the names of the parameter is beyond me (X Distance and Y Distance). However, when each UpdatedDistance field is selected and edited in the formula it does point to the correct parameter.
After wasting nearly a day, I can't get it to work. It returns the ### every time. Is it simple syntax or am I missing something greater? Any help is welcomed and is greatly appreciated!
Thanks,
Chad
I have a dynamic block of a pier. Said pier has 2 linear parameters, one in the X direction and one in the Y direction. With appropriate stretch actions associated with them that are set at a defined list of sizes. There are fields in an attribute attached to the block that will read the x and y dimensions and produce a result: 30"x30" CONC. PIER FOOTING. The size updates as the block is stretched. No problem, works great.
What I want to do is add the third dimension: 30"x30"x15" CONC. PIER FOOTING. I want the third dimension to equal half of the smallest side of the pier. So, the condition would look like this (I'll use X and Y to denote each side): IF(X<Y, X/2, Y/2)
Right?
Here's my syntax in the formula editor: IF ((UpdatedDistance<UpdatedDistance), (UpdatedDistance/2), (UpdatedDistance/2)) Where UpdatedDistance is an inserted BlockPlaceHolder field assigned to either the x or y parameter.Why it says UpdatedDistance and not the names of the parameter is beyond me (X Distance and Y Distance). However, when each UpdatedDistance field is selected and edited in the formula it does point to the correct parameter.
After wasting nearly a day, I can't get it to work. It returns the ### every time. Is it simple syntax or am I missing something greater? Any help is welcomed and is greatly appreciated!
Thanks,
Chad