cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Useful BOM Repeat region relation - Exists()

dschenken
21-Topaz I

Useful BOM Repeat region relation - Exists()

Someone had a question about getting an entry into a BOM, but didn't look forward to creating a new parameter for all the parts. I think this might be applicable.

Not sure where I got this, probably Help.

exists()

Evaluates whether an item, such as a parameter or dimension, exists. This can apply to the model for which the relation is being evaluated, or to any model, component, or submodel structure.

For example:

if exists("d5:20")—Checks if the model with runtime ID 20 has a dimension d5.

if exists ("par:fid_25:cid_12")—Checks if the feature ID 25 in the component ID 12 has parameter par.

This allows evaluation to be based on a parameter that exists in only one part of a large assembly. For example, suppose that there are several systems in a large assembly (such as hydraulic, pneumatic, or electrical systems), but the majority of objects belong to no system.

In this case, to make evaluations that are based on the parameter, you must assign the appropriate parameter to those models that belong to the system.

For example, if items in the electrical system must use a part number in the BOM report table, instead of the model name, you can create a report parameter bom_name and write the following relation:

if exists("asm_mbr_cabling")
bom_name = part_no
else
bom_name = asm_mbr_name
endif


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.
0 REPLIES 0
Top Tags