Customizing sBOM XML Files > <sbom> Element > <ebom> Element > <refpart> Element
  
<refpart> Element
The refpart element is child of the ebom element. It is required if pvcidpath is not specified in the parent ebom element.
Like pvcidpath, the refpart element specifies the eBOM part that an sBOM instance is linked to. However, instead of using a path to specify the link source, refpart uses the values of its attributes, such as <name>, category, and type, to identify the referenced eBOM part.
<refpart> Syntax
<refpart name="" category="">CDATA</refpart>
<refpart> Attributes
name
Specifies the name of an attribute that is used to find a match in the eBOM.
category
Specifies the category for the name attribute above.
type
(Optional) specifies the type for the name attribute above. If type is omitted, the default is "symbol".
* 
The type attribute is often omitted because most Creo View files are published with attributes of type="symbol".
<refpart> Child Elements
CDATA
Text string value of the specified <name> attribute above. For example, if name="PartNo", then CDATA value is the actual part number text string, such as 123ABC.
<refpart> Example
This example shows an sBOM instance referencing an eBOM part using refpart.
The reference is made to any eBOM item that has the specified property name, category, type and CDATA value. The reference is made on the first unused match found. Once referenced (“used”) the eBOM item will not be chosen again.
<instance qty="1" type="REPLACEABLE">
<name>reuse from ebom </name>
<ebom>
<refpart name=“CustomId” category=”id-db" type="symbol">1234567</refpart>
</ebom>
</instance>
The <instance> attribute qty="1" means one sBOM item is created and it references one eBOM item. You can use the same syntax to create “n” sBOM items from the referenced eBOM item by setting the instance qty="n".