To Create a Formula for a Component Property (AutoCAD Mechanical Toolset)
At the Command prompt, enter AMOPTIONS.
In the Options dialog box, select the AM:Standards tab.
In the Standard Elements list, double-click BOM. The BOM Settings dialog box is displayed.
In the Available component properties list, click in the value column of the row corresponding to the component property you want to edit. The button appears.
Click . The Expression Builder dialog box is displayed.
In the Select value type list, select Formula.
In the expression box, add references, Operators, and Functions, as required.
For example, if you create a formula for Cost, truncated to the nearest dollar (Integer value of Price × Quantity):
In the Category list, select Function.
In the Select list, select INT, and click Add. The Expression area shows =INT().
In the Expression area, place the cursor between the brackets.
In the Category list, select BOM Properties.
In the Select list, select QTY and click Add. The program adds the reference <QTY> to the expression area.
Type the asterisk character (*) after <QTY>.
In the Select list, select PRICE, and click Add. The formula =INT(<QTY>*<PRICE>) is complete.