Hide Table of Contents

Document Properties > Tables > Bill of Materials

 

 

Setting

Get/Set Methods

Return Value or <Value>

Comments

Border - Box Border

IModelDocExtension::GetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingBillOfMaterialBorderLineWeight, swUserPreferenceOption_e.swDetailingNoOptionSpecified)

IModelDocExtension::SetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingBillOfMaterialBorderLineWeight, swUserPreferenceOption_e.swDetailingNoOptionSpecified, swLineWeights_e.<Value>)

See swLineWeights_e for valid options

 

Border - Grid Border

IModelDocExtension::GetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingBillOfMaterialGridLineWeight, swUserPreferenceOption_e.swDetailingNoOptionSpecified)

IModelDocExtension::SetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingBillOfMaterialGridLineWeight, swUserPreferenceOption_e.swDetailingNoOptionSpecified, swLineWeights_e.<Value>)

See swLineWeights_e for valid options

 

Text - Font...

IModelDocExtension::GetUserPreferenceTextFormat(swUserPreferenceTextFormat_e.swDetailingBillOfMaterialTextFormat, swUserPreferenceOption_e.swDetailingNoOptionSpecified)

IModelDocExtension::SetUserPreferenceTextFormat(swUserPreferenceTextFormat_e.swDetailingBillOfMaterialTextFormat, swUserPreferenceOption_e.swDetailingNoOptionSpecified, <Value>)

See ITextFormat for font options

To set font property values, implement ITextFormat, set the appropriate ITextFormat member values, and pass the ITextFormat object in the API set method

Zero quantity display

IModelDocExtension::GetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swBomTableZeroQuantityDisplay, swUserPreferenceOption_e.swDetailingBillOfMaterial)

IModelDocExtension::SetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swBomTableZeroQuantityDisplay, swUserPreferenceOption_e.swDetailingBillOfMaterial, swZeroQuantityDisplay_e.<Value>)

See swZeroQuantityDisplay_e for valid options

 

Missing component - Keep the row for missing component

IModelDocExtension::GetUserPreferenceToggle(swUserPreferenceToggle_e.swBomTableKeepMissingItems, swUserPreferenceOption_e.swDetailingNoOptionSpecified)

IModelDocExtension::SetUserPreferenceToggle(swUserPreferenceToggle_e.swBomTableKeepMissingItems, swUserPreferenceOption_e.swDetailingNoOptionSpecified, <Value>)

Boolean value

Specifies whether to list missing (deleted) components in BOM

Missing component - Display with strikeout text

IModelDocExtension::GetUserPreferenceToggle(swUserPreferenceToggle_e.swBomTableStrikeThroughMissingItems, swUserPreferenceOption_e.swDetailingNoOptionSpecified)

IModelDocExtension::SetUserPreferenceToggle(swUserPreferenceToggle_e.swBomTableStrikeThroughMissingItems, swUserPreferenceOption_e.swDetailingNoOptionSpecified, <Value>)

Boolean value

Specifies whether to strike through text for missing components

Leading zeroes

IModelDocExtension::GetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingLeadingZero, swUserPreferenceOption_e.swDetailingBillOfMaterial)

IModelDocExtension::SetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingLeadingZero, swUserPreferenceOption_e.swDetailingBillOfMaterial, swDetailingLeadingZero_e.<Value>)

See swDetailingLeadingZero_e for valid options

 

Trailing zeroes

IModelDocExtension::GetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingDimTrailingZero, swUserPreferenceOption_e.swDetailingBillOfMaterial)

IModelDocExtension::SetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingDimTrailingZero, swUserPreferenceOption_e.swDetailingBillOfMaterial, swDetailingDimTrailingZero_e.<Value>)

See swDetailingDimTrailingZero_e for valid options

 

Do not add "QTY" next to configuration name

IModelDocExtension::GetUserPreferenceToggle(swUserPreferenceToggle_e.swBomTableDontAddQTYNextToConfigName, swUserPreferenceOption_e.swDetailingNoOptionSpecified)

IModelDocExtension::SetUserPreferenceToggle(swUserPreferenceToggle_e.swBomTableDontAddQTYNextToConfigName, swUserPreferenceOption_e.swDetailingNoOptionSpecified, <Value>)

Boolean value

Do not add QTY column header name next to configuration name header

Do not copy QTY column name from template

IModelDocExtension::GetUserPreferenceToggle(swUserPreferenceToggle_e.swDontCopyQTYColumnNameFromTemplate, swUserPreferenceOption_e.swDetailingNoOptionSpecified)

IModelDocExtension::SetUserPreferenceToggle(swUserPreferenceToggle_e.swDontCopyQTYColumnNameFromTemplate, swUserPreferenceOption_e.swDetailingNoOptionSpecified, <Value>)

Boolean value

Do not copy QTY column header name from template to BOM

Restrict top-level only BOMs to one configuration

IModelDocExtension::GetUserPreferenceToggle(swUserPreferenceToggle_e.swOneConfigOnlyTopLevelBom, swUserPreferenceOption_e.swDetailingNoOptionSpecified)

IModelDocExtension::SetUserPreferenceToggle(swUserPreferenceToggle_e.swOneConfigOnlyTopLevelBom, swUserPreferenceOption_e.swDetailingNoOptionSpecified, <Value>)

Boolean value

Specifies whether to limit BOMs designated as top-level only to one configuration

Automatic update of BOM

IModelDocExtension::GetUserPreferenceToggle(swUserPreferenceToggle_e.swDetailingAutoUpdateBOM, swUserPreferenceOption_e.swDetailingNoOptionSpecified)

IModelDocExtension::SetUserPreferenceToggle(swUserPreferenceToggle_e.swDetailingAutoUpdateBOM, swUserPreferenceOption_e.swDetailingNoOptionSpecified, <Value>)

Boolean value

Specifies whether to automatically update BOM when changes are made to model

Layer

IModelDocExtension::GetUserPreferenceString(swUserPreferenceStringValue_e.swDetailingLayer, swUserPreferenceOption_e.swDetailingBillOfMaterial)

IModelDocExtension::SetUserPreferenceString(swUserPreferenceStringValue_e.swDetailingLayer, swUserPreferenceOption_e.swDetailingBillOfMaterial, <Value>)

Valid options:

  • "Border"

  • "Dimensions"

  • "Notes"

  • "BOM"

  • "FORMAT"

  • "None"

This setting is available only on drawings; depending on drawing, some options may not apply



Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   Document Properties > Tables > Bill Of Materials
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2015 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.