Question
Create Functions on relations
I am using Pro/ENGINEER and Creo Elements/Pro Release Wildfire 4.0 and DatecodeM130
I want to use the same relation using measurements of the model many times. Instead of repeating the same relation for each used measurement, is it possible to create a function where each time it is needed on the Relations it could be called specifying the value needed to perform the calculation.
For instance, in Python would be something like this:
#Function definition:
def sum(a, b):
return a + b
#When the function is needed would be called like this:
sum(3, 4)
Result --> 7
I want to use the same relation using measurements of the model many times. Instead of repeating the same relation for each used measurement, is it possible to create a function where each time it is needed on the Relations it could be called specifying the value needed to perform the calculation.
For instance, in Python would be something like this:
#Function definition:
def sum(a, b):
return a + b
#When the function is needed would be called like this:
sum(3, 4)
Result --> 7

