Bill Of Material (BOM) Description - Intergraph Smart 3D - Reference Data

Intergraph Smart 3D Hangers and Supports Reference Data

Language
English
Product
Intergraph Smart 3D
Subproduct
Hangers and Supports
Search by Category
Reference Data
Smart 3D Version
12.1 (2019)

To customize the Bill of Materials (BOM) for the symbol, implement ICustomHgrBOMDescription. The customized BOM implementation is called only when the BOMType is set to one of the following in the ReferenceData workbook:

  • 3 - the BOM method called from the symbol

  • 4 - BOM method called from a different ProgID

You must add the implementation in the BOMDescription() method. The BOMDescription() method takes a symbol object and returns a BOMString.

public class WBAParts : CustomSymbolDefinition , ICustomHgrBOMDescription

{

// Declare inputs

// Definitions of Aspects and their Outputs

// Implement ContructOutputs() to create the geometry and ports of symbol

// Implement BOMDescription() to set BOM description for the symbol

public string BOMDescription(BusinessObject oSupportComponent)

{

string bomString = "";

try

{

Part wbaPart = (Part) oSupportComponent.GetRelationship("madeFrom", "part").TargetObjects[0];

bomString = "Customized BOM from Symbol Code: " + wbaPart.PartDescription;

return bomString;

}

catch (Exception ex)

{

throw ex;

}

}

}