×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Problem with BaseReact function in SAP2000 API using MATLAB

Problem with BaseReact function in SAP2000 API using MATLAB

Problem with BaseReact function in SAP2000 API using MATLAB

(OP)
Hello:

I am trying to extract the base reactions from my model by accessing the SAP2000 API using MATLAB but I cannot get the program to return the correct values. The problem I am currently having is that it is returning an empty array for the My and a value of zero for my Mz. If anyone could offer some guidance or point me to a resource? I have copied and pasted my code for this function below. Thanks!

%run analysis
ret = SapModel.Analyze.RunAnalysis

%clear all case and combo output selections
ret = SapModel.Results.Setup.DeselectAllCasesAndCombosForOutput

%set case and combo output selections
ret = SapModel.Results.Setup.SetComboSelectedForOutput('MassCombo')


NumberResults=1;
LoadCase=cellstr('');
StepType=cellstr('');
StepNum = reshape(0:1,2,1);
Fx=reshape(0:1,2,1); Fy=reshape(0:1,2,1); Fz=reshape(0:1,2,1);
Mx=reshape(0:1,2,1); My=reshape(0:1,2,1); Mz=reshape(0:1,2,1);
gx=0; gy=0; gz=0;

%get base reactions
[ret,NumberResults,LoadCase,StepType,StepNum,Fx,Fy,Fz,Mx,My,Mz,gx,gy,gz] = SapModel.Results.BaseReact(NumberResults, LoadCase, StepType, StepNum, Fx, Fy, Fz, Mx, My, Mz, gx, gy, gz)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources