Professional Documents
Culture Documents
Functions Used in
Relations
Mathematical Functions
The following operators can be used in relations, both in equations and in conditional
statements.
Relations can include the following mathematical functions:
bound(x,lo,hi) Limits x between the ‘lo’ and the ‘hi’ values. If x < lo;
the result of the function is lo; if x > hi, the result is hi;
for all other values of x, the result of the function is x.
The ‘lo’ value must be smaller than the ‘hi’ value.
dead(x,lo,hi) Defines a range of values for x, for which the result of
the function is 0. ‘lo’ and ‘hi’ define the range of values.
If x < lo, the result of the function is x–lo; if x > hi, the
result of the function is x–hi, if x is between “lo” and
“hi”, the result of the function is 0.
near(x,y,delta) Tests whether two values are close, where x and y are
the two values and delta defines their permissible
difference. If x lies within delta of y, the result of the
function is 1.0 (true). If abs(x–y) <= delta, the result
of the function is 1.0; if abs(x-y) > delta, the result of
the function is 0.0.
dbl_in_tol (arg1, arg2, Checks whether a real number arg 1 matches another
arg3) real number arg 2 within a specified tolerance arg 3. It
returns TRUE, if the value of arg1 is between (arg 2 -
arg 3) and (arg 2 + arg 3).
The function returns TRUE, if, the following condition is
met:arg1 <= arg2+arg3 && arg1 >= arg2-arg3.
For example, to check if a given angle equals 45 degree
within a tolerance of 3 degree. If the given angle (arg1)
is 47, then it is within the range of arg2-arg3 (45-3)
and arg2+arg3(45+3).
You can use the Cabling mode functions to determine the length and maximum diameter
of a cable, wire, or bundle.
• To calculate the length of the cable
◦ Use the following syntax to calculate the current length of a cable or bundle:
cable_len ("cable_name",location_id1,location_id2)
▪ cable_name is the name of the cable or bundle that you want to measure in the
current harness.
▪ location_id is the internal feature ID of the location through which cable_name is
routed, where location_id1 and location_id2 denote the locations between
which the length is to be calculated.
◦ Use the following syntax to calculate the length of the entire cable:
cable_len ("cable_name",-1,-1)
• To calculate the maximum diameter of a cable, wire, or bundle
◦ Use the following syntax to calculate the maximum diameter of a cable, wire, or
bundle at a specific location:
cable_thick ("cable_name",location_id)
▪ cable_name is the name of the cable, wire, or bundle that you want to measure in
the current harness.
▪ location_id is the internal feature ID of the location through which cable_name is
routed.
• Use the following syntax to calculate the maximum diameter of a cable, wire, or bundle:
cable_thick ("cable_name",-1)
eang(e_ID1, e_ID2) Angle in radians between two entities, e_ID1 and e_ID2,
of a case study
e_ID1 and e_ID2 are integers that identify the Case Study entities.
Graph evaluation function enables you to use graph features to drive dimensions through
relations. The dimensions can be section, part, or assembly dimensions. The format is the
following:
evalgraph("graph_name", x)
where:
• graph_name—the name of a graph.
• x—the value along the x-axis of the graph for which the y value is returned.
For sweep features, you can specify the trajectory parameter trajpar as the second
argument of this function.
A graph feature is usually evaluated for its defined x-axis values. When it is
evaluated beyond the defined range, the y-axis values are extrapolated. The system
calculates the extrapolated value for values of x less than the initial value by extending
a tangent line back from the initial point. Likewise, the system calculates the
extrapolated value for values of x greater than the final value by extending a tangent
line out from the final point.
where:
• trajname—the name of a composite curve.
• pointname—the name of a datum point.
The trajectory is a parameter along the composite curve at which the plane, normal to
the tangent of the curve, passes through the datum point. The datum point does not
have to be located on the curve—the parameter is calculated at the point on the curve
that is closest to the datum point.
Related Topics
About Operators Used in Relations
Example: Graph Evaluation Function
Mass Property Functions
Back to top