Difference between revisions of "Benderlink for SolidWorks 1.71"
Line 19: | Line 19: | ||
<font size=1> | <font size=1> | ||
− | < | + | <source lang="pascal"> |
var | var | ||
BendAllowance: real; | BendAllowance: real; | ||
Line 29: | Line 29: | ||
result := NewArc; | result := NewArc; | ||
end; | end; | ||
− | </ | + | </source> |
</font> | </font> | ||
Line 35: | Line 35: | ||
<br> | <br> | ||
The value returned is called the "result". At the bottom of the code (just before the "end;" line), the | The value returned is called the "result". At the bottom of the code (just before the "end;" line), the | ||
− | < | + | <source lang="pascal">result := NewArc;</source> line of code assigns the value in the NewArc variable to the |
<br> | <br> | ||
<br> | <br> | ||
These are the available math functions: | These are the available math functions: | ||
− | < | + | <source lang="pascal"> |
blinksw(OD) | blinksw(OD) | ||
blinksw(CLR) | blinksw(CLR) | ||
Line 114: | Line 114: | ||
Tan() | Tan() | ||
Tanh() | Tanh() | ||
− | </ | + | </source> |
Revision as of 11:56, 7 March 2008
CHANGES
New - Bend Reduction Formula Editor
Predicting elongation in a tube shape requires complex mathematics that changes per customer application. Benderlink for SolidWorks now allows operators to program their Bend Reduction formula into the program. This is the Bend Reduction Function editor:
The editor is very powerful because it allows you to enter action Pascal code to define the function that returns the adjusted arc lengths. This is an example bend reduction program included with Benderlink:
<source lang="pascal"> var
BendAllowance: real; NewArc: real;
begin
BendAllowance := 0.64; NewArc := ((BendAllowance * blinksw(OD) + (PI/2 * (blinksw(CLR)-0.5 * blinksw(OD) ))) / 90) * blinksw(BENDANGLE); //MessageDlg('New Arc Length: ' + floattostr(NewArc), mtInformation, [mbOK], 0); result := NewArc;
end; </source>
The value returned is called the "result". At the bottom of the code (just before the "end;" line), the
<source lang="pascal">result := NewArc;</source> line of code assigns the value in the NewArc variable to the
These are the available math functions:
<source lang="pascal"> blinksw(OD) blinksw(CLR) blinksw(BENDANGLE) sqr() sqrt() arctan() cos() sin() tan() abs() exp() ln() log() int() frac() trunc() round() arcsin() arccos() sign() not() PI ArcCos() ArcCosh() ArcCot() ArcCotH() ArcCsc() ArcCscH() ArcSec() ArcSecH() ArcSin() ArcSinh() ArcTan2() ArcTanh() Cosecant() Cosh() Cot() Cotan() CotH() Csc() CscH() CycleToDeg() CycleToGrad() CycleToRad() DegToCycle() DegToGrad() DegToRad() GradToCycle() GradToDeg() GradToRad() Hypot() IntPower() IsInfinite() IsNan() Ldexp() LnXP1() Log10() Log2() LogN() Max( Min() Power() RadToCycle() RadToDeg() RadToGrad() RandG() RandomRange() Sec() Secant() SecH() Sinh() Tan() Tanh() </source>