BoM tables, repeat regions, and relations
Hi all,
For our assemblies, we add a BoM table to the drawing. These were setup a while ago, and we have a few different tables saved for different purposes. The main one is a simple table with a repeat region as follows
This works fine for most of the parts, but it doesn’t allow us to define a different part number other than the one defined in Windchill. If we were starting again with our installation, we would probably add a relation in the start part against a parameter such as ‘BOM_PART_NUMBER’ which defaulted to the Windchill part number but could be changed by the user. This parameter would then be what is defined in the repeat region.
However, we now have many thousand parts and none of them have this parameter, and so we cannot change the part number in the BoM without changing the file name of the part.
Having done some research, it looks like relations can be added to the repeat region, and so a conditional statement can be added. Descriptively, what I had in mind is that if the parameter ‘BOM_PART_NUMBER’ exists in the part, then this is used in the column. If it doesn’t exist, then the standard number as defined by asm.mbr.name is used.
Copilot suggested adding this relation:
IF EXISTS("BOM_PART_NUMBER")
BOM_PN = BOM_PART_NUMBER
ELSE
BOM_PN = asm.mbr.name
ENDIF
But this doesn’t work.
Any help greatly appreciated.
Thanks.


