Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
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