Sheet.BuildBillOfMaterials Method

Creates a block with the Bill Of Materials table.
Public Overridable Function BuildBillOfMaterials( _ 
ByVal model1 As Model, _ 
ByVal insertionPoint As Point3D, _ 
ByVal itemNumberText As String, _ 
ByVal partNumberText As String, _ 
ByVal descriptionText As String, _ 
ByVal quantityText As String, _ 
ByRef block As Block, _ 
Optional ByVal blockName As String = null, _ 
Optional ByVal partsOnly As Boolean = false, _ 
Optional ByVal flowDirection As flowDirection = Table.flowDirection.Down, _ 
Optional ByVal maxLevel As Integer = int.MaxValue _ 
) As BlockReference
This language is not supported or no code example is available.
public virtual BlockReference BuildBillOfMaterials( 
Model model1
Point3D insertionPoint
string itemNumberText
string partNumberText
string descriptionText
string quantityText
out Block block
string blockName = null, 
bool partsOnly = false, 
flowDirection flowDirection = Table.flowDirection.Down, 
int maxLevel = int.MaxValue 
)
This language is not supported or no code example is available.

Parameters

model1
Model

The model environment.

insertionPoint
Point3D

The Table insertion point.

itemNumberText
string

The item number text.

partNumberText
string

The part number text.

descriptionText
string

The description text.

quantityText
string

The quantity text.

block
Block

The new block created.

blockName
string

The block name.

partsOnly
bool

If true, only the blocks containing geometry are taken in account to construct the bill of materials.

flowDirection
flowDirection

The table flow direction (up/down).

maxLevel
int

The max deep used to navigate the assembly geometry to create the bill of materials.

Return Value

BlockReference

The resulting blockreference object.

.NET Framework

Supported in: 4.8

In this article

Definition