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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Exists

MikeThomason
1-Newbie

Exists

In the relations function list there is an "exists" function. I'm wanting to write a relation that would copy the value of one of two possible parameters. We have three different "legacy" parameters that were used for the part description and I would like to consolidate into one. Legacy partscontain one of the three.

Does anyone know the syntax for using this "exists" function? I've looked all over the PTC website and documentation but can't find anything.

Thanks in advance,

Mike Thomason


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.
1 REPLY 1


Thanks for the replies... summary below:

This is the relation that works for my specific problem:

if exists("part_name")
part_desc=part_name
else
if exists("description")
part_desc=description
else
part_desc="ENTER DESCRIPTION"
endif
endif

TPI Detailing Functions used in relations: https://www.ptc.com/appserver/cs/view/solution.jsp?n=146615

Thanks again to all who replied.


In Reply to Mike Thomason:

In the relations function list there is an "exists" function. I'm wanting to write a relation that would copy the value of one of two possible parameters. We have three different "legacy" parameters that were used for the part description and I would like to consolidate into one. Legacy partscontain one of the three.

Does anyone know the syntax for using this "exists" function? I've looked all over the PTC website and documentation but can't find anything.

Thanks in advance,

Mike Thomason

Top Tags