Common mathematical operators:
+ |
Add two values, e.g. the top level of an element could be obtained by adding the element height to the base level: element.height + element.level |
|
- |
Subtract two values, e.g. the offset from an element’s home storey level to its base level: element.level – element.storey.level |
|
* |
Multiply two values, e.g. the bounding area of an element in plan could be obtained by multiplying its bounding width and depth: element.width * element.depth |
|
/ |
Divide one value by another, e.g. the average skin thickness of “Red Brick” in a wall could be obtained by dividing the total thickness of the material in the wall by the number of skins of the material: |
|
^ |
Raise one value to the exponent of another, e.g. the length across the diagonal of the element’s bounding box can be calculated using : (element.width ^ 2 + element.depth ^ 2) ^ 0.5 |
|
% |
Calculates the remainder when one number is divided by the other, e.g. 13 % 5 = 3 For example, we could calculate the height of a wall that doesn’t fit within the selected brick module (from a wall property): |
Comments
0 comments
Please sign in to leave a comment.