0 Members and 1 Guest are viewing this topic.
Max(Abs(Left Diameter - Right Diameter), 4)
The calculation field provides a few math functions. "Max" will return the largest of two numbers. "Abs" will return the absolute value of a given number. A common practice for reducers is to make the body length C1-C2 with a minimum of 4 inches. Code: [Select]Max(Abs(Left Diameter - Right Diameter), 4)
That is cool. never new the Max and Abs functions were available to us. Any others?
Quote from: cadbykenThat is cool. never new the Max and Abs functions were available to us. Any others?Calculated Dimension Functions
The calculation field provides a few math functions. "Max" will return the largest of two numbers. "Abs" will return the absolute value of a given number. A common practice for reducers is to make the body length C1-C2 with a minimum of 4 inches.
You could also product list it using excel to make the calcs for you. Wouldn't take but 1/2 hour or so to do.
We simply use A-B with a minimum of 4"...
Quote from: VirtualPilot on Jul 23, 2021, 16:02:23 PMWe simply use A-B with a minimum of 4"...That doesn't work for increasers.Max(8 - 14, 4) returns 4, while the code posted above returns 6, which is the correct answer. Sign matters. Mistakes like this slip by all the time, sometimes for years. Many of them can be extremely costly, especially when scripting.