Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
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
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