A few things PTC could do to make me love them.
1. Create a RTOS (Real Number to String) function.
2. Allow user defined functions in Relations.
ie:
function calcHoleSpacing(myLength, myHole_inset) {<br style="color: rgb(0, 0, 255);">
oc_spacing = 8<br style="color: rgb(0, 0, 255);">
end_to_end = myLength - myHole_inset * 2<br style="color: rgb(0, 0, 255);">
num_spaces = ceil(end_to_end/oc_spacing)<br style="color: rgb(0, 0, 255);">
num_holes = num_spaces + 1<br style="color: rgb(0, 0, 255);">
hole_spacing = end_to_end/num_spaces
return hole_spacing<br style="color: rgb(0, 0, 255);">
}
myHoleSpacing = calcHoleSpacing(36, 2)
3. Allow includes of these functions, so you could call a file that has all of your functions.
4. Allow FOR loops. Or ANY looping would be nice.
Just wishing.
Jim
1. Create a RTOS (Real Number to String) function.
2. Allow user defined functions in Relations.
ie:
function calcHoleSpacing(myLength, myHole_inset) {<br style="color: rgb(0, 0, 255);">
oc_spacing = 8<br style="color: rgb(0, 0, 255);">
end_to_end = myLength - myHole_inset * 2<br style="color: rgb(0, 0, 255);">
num_spaces = ceil(end_to_end/oc_spacing)<br style="color: rgb(0, 0, 255);">
num_holes = num_spaces + 1<br style="color: rgb(0, 0, 255);">
hole_spacing = end_to_end/num_spaces
return hole_spacing<br style="color: rgb(0, 0, 255);">
}
myHoleSpacing = calcHoleSpacing(36, 2)
3. Allow includes of these functions, so you could call a file that has all of your functions.
4. Allow FOR loops. Or ANY looping would be nice.
Just wishing.
Jim