Hi,
I'm using C# to write some code that uses OpenSTAAD and have run into some problems.
Here's how my code looks so far:
OPENSTAADLib.Output OSOutput = new OPENSTAADLib.Output();
OSOutput.SelectSTAADFile(filePath);
OSOutput.AnalyzeStructure("STAAD Analysis");
// get member design ratio
OSOutput.GetMemberSteelDesignRatio(memID, ref designRatio);
everything works fine up o here, but I can't figure out how to use the following functions
double[] displacements = new double[6];
OSOutput.GetNodeDisplacements(NodeID, loadCombNumbers[i], ref displacements[0]);
I get the correct value for the first index but the remaining are 0 (ie. displacements [0] is correct but displacements[1] to [5] are all 0.
I have the same problem with the GetLoadCombinationCaseNumbers function. I'm trying to use it as follows:
short loadCombCount ;
OSOutput.GetLoadCombinationCaseCount(ref loadCombCount);
short[] loadCombNumbers = new short[loadCombCount];
OSOutput.GetLoadCombinationNumbers(loadCombCount, ref loadCombNumbers[0]);
I get the correct value for loadCombNumbers[0] but the rest are set to 0.
How can I get these functions to work?
Any help would be greatly appreciated as I'm in a time crunch to get this completed.
Thanks,
SabrTruth