Skip to main content
15-Moonstone
November 14, 2014
Question

Repeat region summation.

  • November 14, 2014
  • 12 replies
  • 5495 views

Is it possible to assign a repeat region summation to a parameter, so that it can later be used in a different repeat region?

 

for example, in a drawing I have a summation that is called &total_weight:d these appear on each drawing as the total weight for that assembly.

 

I would like to show all of the "&total_weight:D" in a repeat region in an erection drawing.

 

I can't seem to figure out how to do this.

 

attached are a couple of pictures just to help clarify


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.

12 replies

1-Visitor
November 14, 2014

Repeat region is tied to a model/rep rather than the actual drawing.

Assemblies can pull data from their components using relations. If you can put all the summations together on assembly level then you can also have them reported in repeat region of the assembly drawing.

SYNDAKIT15-MoonstoneAuthor
15-Moonstone
November 14, 2014

indeed, but I would need a way to sum all of these individual parts in the assembly then I could pass them along to other drawings/models.

I could do this by,, sum_weight=weight:122+weight:124...... and so on. but I'm trying to use the functionality that already exists in the repeat region to drive the summation. then figure out a way to pull that region sum to a final erection drawing

but the repeat region summation tool seems to be tied only to the drawing the " : D " in the total_weight:D is what makes me think its tied only to the drawing.

am I understanding this correctly?

1-Visitor
November 14, 2014

Yes, you sort of do understand it correctly. Repeat region summation is only tied to that specific repeat region, which is again tied to the specific model or it's representation, not to the drawing itself really. The actual table is of course inside of a drawing, cause repeat region needs a table to exist, and a table needs a drawing to exist. It's not possible to make repeat regions on model level as far as I know.

If you just want to leverage the repeat region data you already have, then your best bet is to go with third party scripting tool that can read drawing tables using CSV format, then transform the data the way you want, possibly into a one summary table file, and import it back in using the CSV format.

The table coming back from CSV file is gonna look rather messy, so you might need to make a mapkey or two to make it look good again.

One question. Would you not be able to measure the overall mass of all the assemblies from each assembly? Instead of using all the parts one by one. I don't know if you have assemblies filtered out of your repeat region tables, but that could be another way to go.

If you ask me I'd try to avoid all the hassle with repeat regions if possible. I realize the data is already there, and that's why you want to use them, but the data is also in all of the parts used as well. Repeat regions are just slaves for all of these parts. You could make a third party script to open all the parts and read their weight params, and have it summed up for ya, based on whatever conditions you choose. It might be tricky to get all of the quantities correctly, but it can be done, as the data is already there.

The script can be taught to read through as many assemblies/folders as you like.