& Construction

Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
& Manufacturing

Professional CAD/CAM tools built on Inventor and AutoCAD
Use Math blocks to add, subtract, multiply, divide, and round numbers, as well as to find the square root and perform trigonometry functions.
Math code blocks contain mathematical blocks to perform a variety of operations. These include a Number constant block, a block with Operations of arithmetic, a block with Square Root and other common functions, a Trigonometry block, a Rounding block, a Remainder Of block, and a Constrain block to limit a number between a minimum and a maximum value.
When working with mathematical code blocks, it is important to understand the relationship between block grouping and the order of operations.
An arrangement of blocks is created with an intended result of 36, as shown in the calculation.
However, each block in the following block set acts as a grouped parenthetical calculation. When the code block is run, the result of the following configuration is 40.
The same blocks are rearranged and grouped to achieve the expected result of 36.
To set up a rule that calculates the area of a wall, first, add the Area parameter to the form:
The product definition shown below has already been set up to display the length and height in form messages as inches.
To make the Area parameter read-only:
To create the Area calculation:
The Area calculation displays in the form as a read-only value.
Next, to determine the diagonal measurement of the wall from corner to corner, transform the Pythagorean theorem to solve for length c.
A popup shows the Diagonal result.
The angles of the diagonal corners can be calculated using the Inverse Tangent Trigonometric block.
The result for the Diagonal, along with the result for Angle A and Angle B display in the popup.
In summary, Math blocks evaluate as parenthetical groups following the standard order of operations. There are numerous Math blocks that can be combined to perform a variety of mathematical calculations.