Help with Results.JointDispl
Help with Results.JointDispl
(OP)
Hello everybody
I do not know how to use this function:
ret = SapModel.Results.JointDispl("ALL", GroupElm, NumberResults, Obj, Elm, LoadCase, StepType, StepNum, U1, U2, U3, R1, R2, R3)
Could somebody explain the use?
I do not know how to use this function:
ret = SapModel.Results.JointDispl("ALL", GroupElm, NumberResults, Obj, Elm, LoadCase, StepType, StepNum, U1, U2, U3, R1, R2, R3)
Could somebody explain the use?
RE: Help with Results.JointDispl
Are you getting an error when using the function?
S&T - www.re-tug.com
RE: Help with Results.JointDispl
I have write the code below:
public void JointDisplacement()
{
int numberofresult = 0;
string [] loadCases = Enumerable.Repeat("TH 01", numberofresult).ToArray();
string[] stepTypes = Enumerable.Repeat("Time", numberofresult).ToArray();
double[] stepNumbers = new double[numberofresult];
for (int i = 0; i <= numberofresult - 1 ; i++)
{
stepNumbers[i] = i;
}
string[] elementNames = Enumerable.Repeat("231", numberofresult).ToArray();
string[] objectNames = Enumerable.Repeat("231", numberofresult).ToArray();
double[] U1 = new double[numberofresult];
double[] U2 = new double[numberofresult];
double[] U3 = new double[numberofresult];
double[] R1 = new double[numberofresult];
double[] R2 = new double[numberofresult];
double[] R3 = new double[numberofresult];
ret = SapModel.Results.Setup.DeselectAllCasesAndCombosForOutput();
ret = SapModel.Results.Setup.SetCaseSelectedForOutput("TH 01");
ret = SapModel.Results.JointDispl("231",
eItemTypeElm.Element,
ref numberofresult,
ref objectNames,
ref elementNames,
ref loadCases,
ref stepTypes,
ref stepNumbers,
ref U1,
ref U2,
ref U3,
ref R1,
ref R2,
ref R3);
for (int i = 0; i < numberofresult; i++)
{
Console.WriteLine(U1[i]);
}
Console.ReadKey();
}
My goal is having the plotted function in a .txt file in order of achivieng a wrote the code.
Any suggestions of how can i achieve that?
RE: Help with Results.JointDispl
https://github.com/retug/ETABs/blob/main/02-Databa...
I access the results through the database tables. I did my data retrieval in Python, but plotted in excel. For some reason matplotlib was plotting oddly for me.
S&T - www.re-tug.com