BOM TABLE WITH FLEXIBLE QTY AND UOM
First off, I do not have the routed systems packages. I do limited work with components that are "per lenght" as opposed to "per each".
For this reason I have developed a custom BOM Table that uses PARAMETERS and RELATAIONS to populate a custom BOM_QTY.
IF EXISTS ("ASM_MBR_BOM_QTY")
BOM_QTY=asm_mbr_bom_qty
ELSE
BOM_QTY=rpt_qty
ENDIF
For each component that I wish to quantify by lentgth, the BOM_QTY parameter is set by a relation in the model (i.e. BOM_QTY=d0).
I use the FLEXIBILITY (varied items) for such components so that the component legth can be dictated for each assembly.
The BOM_QTY value shown for such components in the BOM TABLE (Repeat Region) will reflect this "flexibility".
This part is working well.
The dilema is that we work in both Metric (mm) and English (in). Our latest designs are Metric.
THE SCENARIO:
Existing model of wire, that was modeled in Eglish (in): WIRE_PART_ENGLISH
New Metric Assembly: METRIC_WIRE_ASSY
WIRE_PART_ENGLISH is placed into METRIC_WIRE_ASSY and made to be flexible. The legth of the tube d0 is made flexible. The value entered is 10 for 10 inches. It appears that the flexibitly window uses the units of the component, in this case inches.
The BOM table in the METRIC_ASSY drawing shows 22 (in) instead of 558.8 (mm). On another note, if the WIRE_PART_ENGLISH dimension d0 (or any other dimention of this component) is shown on METRIC_WIRE_ASSY drawing it will display as 22 (in), not 558.8 (mm). The wire that was modeled in metric displays correctly both BOM information and dimensions.

THE CHALLENGE:
Either...
Option 1. Find a way to have the BOM_QTY value of the components in the BOM display in the units of the ASSY, despite the units of the components
Or
Option 2. Find a way to have a USER DEFINED or SYSTEM paramter for the UOM displayed in the BOM TABLE that mathes the units of the BOM_QTY. If the compnent is a "per each" item, then have EA displed as the UOM.
In eiter case I had to set up the model and the repeat region:
First, for the "per length" component, the BOM_QTY parameter was set up with units (Insert Unit). The Unit Sensitive was turned on in the Relation Utilities and a relation was set up to equate BOM_QTY to the length (BOM_QTY=d0).

For the repeat region, the RELEATIONS and PARAMETERS were set up as follows:

Then I tried to implent Option 2.....
Additional PARAMETERS and RELATIONS were set up to look at the UNITS of the BOM_QTY.
I would think the way to pull the UNIT information from the BOM_QTY parameter would be to use &ASM.MBR.PTC_UNIT.BOM_QTY
Note: The syntax in the relation is to replace the "." with "_"

The issue is that I cannot get the relations to work. I get a hidden error. That is when I Execute\Verify the relations the system says Relations have been successfully verified.
However, when the UPDATE TABLES is run, the system says that "There are errors regenerating repeat region relations".
And for the "per length" items, not only do I get a "blank" value in the UOM column, but the QTY column also now shows a "blank".

Could it have something to do with replacement of the "." with a "_" when you use a PARAMETER in a REPEAT REGION RELATION?
When using &ASM.MBR.PTC_UNIT.BOM_QTY in a relation, it is written &ASM_MBR_PTC_UNIT_BOM_QTY.
I wonder if upon regeneration or update the ASM_MBR_PTC_UNIT_BOM_QTY is interpreted as ASM.MBR.PTC.UNIT.BOM.QTY? The "." between PTC and UNIT would not make sense.
This is driving me nuts!!!!!
UPDATE: 3:11pm 10SEP2012...
I tried to remove the "_" in my BOM_QY and BOM_UOM parameters, and change them to BOMQTY and BOMUOM respectively.
This time it resulted in an error when Execute\Veriry was run. So, it points more to the "_" in the PTC_UNITS being an issue???
Still driving me nuts!!!!!
Mike
Message was edited by: Michael Gwin


