|
Setting the interval parameter of a function |
Scroll |
By default, the name of the interval parameter of a function is t, and its variation interval is [0.0;1.0]. You can modify the name of the function parameter and the limits of its range. To do that, enter the data into the Parameter and Spacing fields on the Parameter Panel.
All the entered data will be added to a list and saved within the session of KOMPAS-3D.
|
Please note that the name of the interval parameter should be different from the names of non-interval parameters of the function and from the names of custom variables of the model. |
You can use numeric values or constants as boundary values of the interval (see table Constants Add-Ons Operators, functions and constants). After you enter the constant and press the <Enter> key, the designation of the constant will be replaced with its value.
If the name of the function parameter for the current coordinate is the same as the name of the function parameter for a previously specified coordinate, then the function parameter variation interval for the current coordinate is determined automatically: it will be the same as the previously specified interval. In this case, it is not possible to modify the parameter variation interval for the current coordinate.
|
You can determine the coordinates of a curve point using the functions of different parameters. Each parameter can have an individual variation interval. |
To set the function parameter variation interval, you can use an existing interval variable. Enter its name in the Parameter field. The value of the interval variable (boundaries of the variation interval) are assigned to the parameter of the operation. In this case, it is not possible to modify the parameter variation interval.
You can also set the function parameter variation interval by creating a new interval variable with the required value. To do this, follow these steps.
1.Enter the range of values in the Spacing field (e.g. [10;-10]).
2.In the right side of the Parameter field, enter the name of the new interval variable (in square brackets).
After the curve is created, the name and the value of the new interval variable will appear in the Variables panel in the Spacing section.
If you change the value of the interval variable on the Variables pane, after that, all the modifications will be applied to the curve: the curve will be rebuilt according to the new function parameter variation interval.
When a curve is created by law, the interval variables are created automatically, and the values of these variables are the specified intervals of function parameter variations. They are placed into the variables section of the new curve.
|
The model needs to be rebuilt in order for the curve to change according to the new interval boundaries. |
If the value of the custom variable is changed after that, the value of the respective variable of the operation parameter will change automatically.
For more details on working with variables, see section Working with Variables.