Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

How to Automatically Display the Number of Unique Component Types in a Drawing Using Parameters

JK_12004273
3-Newcomer

How to Automatically Display the Number of Unique Component Types in a Drawing Using Parameters

Hello,

I am looking for a way to calculate the number of unique component types (excluding duplicates) in an assembly and automatically display this value in a drawing using parameters in Creo Parametric.

The goal is to achieve something like the red box in the attached image, where the number of unique components (e.g., ) is calculated and shown. If a part is used multiple times (e.g., the same part number), it should still be counted as one unique type.3

Questions:

  1. How can I create a parameter that calculates the number of unique component types in an assembly?
  2. What steps are needed to insert this parameter into a drawing?
  3. Are there any additional Relation settings or tips required to make this work?

JK_12004273_0-1736839525811.png

 

Example Image Description:

  • The red box in the image shows where I want the number of unique component types (e.g., 3) to appear in the drawing.

I would greatly appreciate detailed steps or examples to help implement this. Thank you in advance!

7 REPLIES 7

Hi,

I doubt that Creo can insert the maximum value of rpt.index into a drawing or model parameter.


Martin Hanák

I tried to apply it that way, but I failed.


@JK_12004273 wrote:

I tried to apply it that way, but I failed.


Hi,

that is obvious ... rpt.index is "visible" inside repeat region, only. Additionally, the model parameters are read-only inside repeat region.


Martin Hanák
Van_AG
13-Aquamarine
(To:JK_12004273)

Maybe using ModelCHECK in an assembly...?
There are ASM_BOM and UNQ_COMPONENTS checks.
You can parse ModelCHECK report and extract the check's values...

 

 

BenLoosli
23-Emerald II
(To:Van_AG)

ModelCheck will give you this information:

 

UNQ_COMPONENTS
Number of unique parts and sub-assemblies: 281
 
ASM_BOM
Bill of material: 5346

StephenW
23-Emerald III
(To:JK_12004273)

You probably have other reasons, but on this drawing, the balloon number (rpt.index) is that counter???

Yes I can mark the last rpt.index number over there.

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags