9. Write Volumes to Solids

Before (Strip, Block, Bench and Stratigraphic) design data can be written to a Data Table, a Volume attribute needs to be written to those solids. If Volume attributes do not already exist, they can be created using the Setup Attributes function, which is accessible from the Design | Setup right-click menu in the Project Explorer.

To write Volume attribute values to selected solids, the Set Attribute by Expression function is used. As the name suggests, an expression is used to calculate the volume of the selected solid or solids, for example:

GetSolidVolume(CurrentElement)

Tip: To save an expression for later re-use, in the Set Attribute by Expression dialog, you can set the expression method to Expression Sets, create an Expression Set called Calculate Volume, select the Volume attribute and enter the same expression.

You can manage Expression Sets from the Design | Setup right-click menu in the Project Explorer. For more information, see: Attribute Expression Sets