Summary
When using the Smart Part Search component, there are two common scenarios:
1) Getting all the parts for a certain category
2) Getting all the parts for a certain category, and any subcategories
To achieve #1, a filter should use PartCategoryName=TheCategoryName
To achieve #2, one must understand the difference between a Part's Part Category and the Part Hierarchy field.
Part Category vs Part Hierarchy
A Part can only be in one Part Category.
A Part's Hierarchy adds together a Part's Category Name, a slash, that Part Category's Parent name, another slash, and so on.
An example of category vs hierarchy:
A Part named “Message Board-LED” might be in the Part Category “Message Boards”
The Part Category “Message Boards” is a subcategory of the “Electrical Components” Part Category.
The Part Hierarchy field for this part would be:
“Materials\Electrical Components\Message Boards”
Implications for search:
If the objective is to only list parts in one category, and not subcategories, use Part.PartCategoryName.
If the objective is to list parts in one category and all subcategories, use Part.Hierarchy.
Example search filters:
Part.PartCategoryName=“Electrical Components” will ONLY return all Parts in the “Electrical Components” category, NOT any subcategories of “Electrical Components”
Part.Hierarchy=“Materials\Electrical Components” will return all Parts in the “Electrical Components” category, and any Parts in any Subcategories of “Electrical Components”