A Moniker is a name for something, in this case a Widget. A widget is a DGN element. BoM uses a moniker to display the widget ID along with other information as required.
Suppose the widget ID is a number, such as 101. Successive widgets may have their ID incremented to 102, 103, etc. If you want to display just that ID, then you can instruct that to appear using a basic expression. You may want to prefix the ID with W for widget, which needs a marginally more complex expression.
You can read more about monikers.
Suppose that your DGN file contains multiple models, and each DGN model is an assembly schematic. You can assign a schematic ID to each model by creating an Item Type library named Catalog, having an Item Type named Drawings and a SheetId property. Then you can use the model Drawings.SheetId in your BoM moniker.
Moniker | Expression | Sample |
---|---|---|
Widget ID | this.id | 101 |
Drawing ID | this.GetModel().GetItem("Catalog:Drawings").SheetId | 123-456 |
Widget and Drawing IDs | this.GetModel().GetItem("Catalog:Drawings").SheetId & "W" & this.id | 123-456 W101 |
Expressions are part of MicroStation. They were introduced with MicroStation CONNECT Update 15. An expression is able to perform arithmetic calculations as well as primitive text processing.