How to Automatically Display the Number of Unique Component Types in a Drawing Using Parameters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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:
- How can I create a parameter that calculates the number of unique component types in an assembly?
- What steps are needed to insert this parameter into a drawing?
- Are there any additional Relation settings or tips required to make this work?
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!
- Labels:
-
2D Drawing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
I doubt that Creo can insert the maximum value of rpt.index into a drawing or model parameter.
Martin Hanák
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I tried to apply it that way, but I failed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
ModelCheck will give you this information:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You probably have other reasons, but on this drawing, the balloon number (rpt.index) is that counter???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Yes I can mark the last rpt.index number over there.