home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 May
/
W2KPRK.iso
/
apps
/
smartsketch_le
/
Samples
/
FG_MathCadSamples
/
Mathcad
/
Beam
/
Module1.bas
< prev
Wrap
BASIC Source File
|
1999-11-02
|
725b
|
26 lines
Function GetC(L , a1 , PLoad , DLoad)
Lreal = L
a1real = a1
PLoadreal = PLoad
DLoadreal = DLoad
' Get a reference to SmartSketch
Set objSmartSketch = GetObject(, "SmartSketch.Application")
' Get a reference to the Mathcad object
Set objmathcad = objSmartSketch.ActiveDocument.ActiveSheet.SmartFrames2d(1).object
Call objmathcad.SetComplex("in0", Lreal, 0)
Call objmathcad.SetComplex("in1", a1real, 0)
Call objmathcad.SetComplex("in2", PLoadreal, 0)
Call objmathcad.SetComplex("in3", DLoadreal, 0)
Call objmathcad.Recalculate
Call objmathcad.GetComplex("out0", flowreal, flowimag)
GetC = flowreal
End Function