Skip to main content
1-Visitor
July 1, 2016
Solved

Repeat region quantity in multi-staged assembly

  • July 1, 2016
  • 5 replies
  • 10435 views

In my drawing of an assembly I have 3 sheets. Each sheet is an exploded "stage" of the assembly. On these sheets I am creating a repeat region for every stage that will list the exploded parts of that assembly, easy enough I think...

So my issue is this, in the assembly I have a certain screw that has a qty of 18. But, not all of the 18 screws are on the same exploded view, 12 are on one sheet and 6 are on the other. Is there a way I can change the value of the quantity in the individual tables? I've seem ways where people can use relations, but I don't think this would work for me as I figured it would update both tables the same, as in the second table would also show a qty of 12 when I need it to show 6.

To further explain my drawing, I use 3 simp reps from view manager and just named them stage 1, stage 2 and stage 3 and then as my stages progress I exclude the parts/assys that were shown in the previous exploded view. Stage 1 is basically everything in the top level assembly. but only the outer most parts/assys are exploded. When I get to stage 2, all the parts/assys from stage 1 that were part of exploded view are excluded via simp rep and the next set of outer most parts/assys are exploded for stage 2. Then same process for stage 3 where all stage 1 & 2 parts/assys are excluded via simp rep.


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
Best answer by dschenken

You can - it isn't fully automatic, but neither is actually making the assembly on the shop floor.

What you need is to do is add two Component Parameters (not parameters in the part) to each component in the Assembly. One will be the Item Number and the other is the Assembly Step. I usually use the String type for parameters that don't have to be a number.

Then, for each sheet, set up a Repeat region** that filters out all except the matching step and use the asm.cparam.Item_Number instead of the default rpt.item (I think that's it) and set the Table Properties to use the asm.cparam.Item_Number as the balloon source. The rpt.qty should add up only the items that aren't excluded by the repeat region filter.

If you add the display of the Component parameters to the model tree view in the Assembly window, you can just click on any entry - if it doesn't have a value, Creo will prompt for the parameter type and the value; if it already has a value you can just type a new one. For entering the assembly step I'd create a mapkey that does it all (one key to edit the parameter, enter the type, and add the step string for each step); for the others a mapkey to set the parameter type.

**The can be more than one repeat region per sheet; this problem doesn't require that.

5 replies

14-Alexandrite
July 1, 2016

Hi,

You can assign the individual simplified rep to the tables

Select repeat region>Model/Rep> select table> select assembly & desired rep

hope this helps

Pushkar

aerickson1-VisitorAuthor
1-Visitor
July 5, 2016

The only issue with assigning reps is on one exploded view all screws are part of the rep because the unexploded screws are in the model still being shown in the assembly.

So when one rep will be correct and only show a 6, the rep for the assembly up a level (where I need to show 12) will show 18 still.

dschenken1-VisitorAnswer
1-Visitor
July 1, 2016

You can - it isn't fully automatic, but neither is actually making the assembly on the shop floor.

What you need is to do is add two Component Parameters (not parameters in the part) to each component in the Assembly. One will be the Item Number and the other is the Assembly Step. I usually use the String type for parameters that don't have to be a number.

Then, for each sheet, set up a Repeat region** that filters out all except the matching step and use the asm.cparam.Item_Number instead of the default rpt.item (I think that's it) and set the Table Properties to use the asm.cparam.Item_Number as the balloon source. The rpt.qty should add up only the items that aren't excluded by the repeat region filter.

If you add the display of the Component parameters to the model tree view in the Assembly window, you can just click on any entry - if it doesn't have a value, Creo will prompt for the parameter type and the value; if it already has a value you can just type a new one. For entering the assembly step I'd create a mapkey that does it all (one key to edit the parameter, enter the type, and add the step string for each step); for the others a mapkey to set the parameter type.

**The can be more than one repeat region per sheet; this problem doesn't require that.

aerickson1-VisitorAuthor
1-Visitor
July 5, 2016

Just so I got this right, I should be in my top level assembly, in parameters window, under the "look in" drop box, select component and then select the component I want to modify?

I'm also struggling to add the component parameters to the tree column. I've tried searching through the different choices they give in the tree column option, as well as create the parameter inside same window.

1-Visitor
July 1, 2016

‌Although I've never seen it applied in way you need, and if you have the license for it, a Process assembly might be another option for future reference.

aerickson1-VisitorAuthor
1-Visitor
July 5, 2016

Yeah, I figured my process was a bit unorthodox, but everything I know is pretty much self taught, besides a few how to videos.

I looked into the process assembly and you're right, this extension would make it easier from what it states. Sadly we don't have this extension.

1-Visitor
September 8, 2016

I didn't read through all of the responses, so you may already have an answer.

Your assumption that using a relation to change the quantity will affect all repeat regions is wrong, it only applies to the specific region of interest.

I use this technique quite often.

Let me know if you need further info.

1-Visitor
October 14, 2016

Andrew,  Someone may have answered, however, I have used TABLE relations to control a qty and various other parameters as well.

Add the following table relation making the any necessary adjustments to suit your needs:

In the example below I have a parameter named "part_no" that I use to identify the item I would like to have the qty be changed.

Also, these updates would only affect the region to which you have this table relation added.

/*******************************************

/*  Change repeat region table column parameter

/*   from &rpt.qty to &rpt.rel.qty

/*  Set default quantity = report quantity

/*

QTY = rpt_qty

/*

/* The relations below sets the quantity of the part_no parameter to "0" or a desired equivalent

/*

  IF asm_mbr_part_no == "MS15795-803"

     QTY = "0"

ENDIF

/*

/*Table; Repeat Region; Update Tables

/*Repeat and replace as required to suit the other part numbers.

/*******************************************

If you have more than one Item that is going to change, the following table relation is used:

/*******************************************

/*  Change repeat region table column parameter

/*   from &rpt.qty to &rpt.rel.qty

/*  Set default quantity = report quantity

/*

QTY = rpt_qty

/*

/* The relations below sets the quantity of the part_no parameter to "0" or a desired equivalent

/*

  IF asm_mbr_part_no == "MS15795-803"

     QTY = "0"

else

IF asm_mbr_part_no == "MS15795-804"

   QTY = "2"

ENDIF

ENDIF

/*

/*Table; Repeat Region; Update Tables

/*Repeat and replace as required to suit the other part numbers.

/*******************************************

So if you had a third item you would need to have another else statement and an additional ENDIF.

Please pay special attention to the first two comment lines:

/*  Change repeat region table column parameter

/*   from &rpt.qty to &rpt.rel.qty

This means you need to update your report symbol value in your repeat region for the relation to take affect.

I hope this helps.

Kindest Regards,

Patti St.Jacques