×
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

ETABS - MATLAB API

ETABS - MATLAB API

ETABS - MATLAB API

(OP)
Hello!

I'm starting using the API MATLAB-ETABS, and I found an error which I hope you can help me to solve, next you'll find the code of the example:

clc, clear all, close all

NumberResults = NaN;
Obj = cellstr(' ');
Elm = cellstr(' ');
LoadCase = cellstr(' ');
StepType= cellstr(' ');
StepNum=NaN;
F1=zeros(1,1,'double');
F2=zeros(1,1,'double');
F3=zeros(1,1,'double');
M1=zeros(1,1,'double');
M2=zeros(1,1,'double');
M3=zeros(1,1,'double');

% 'create ETABS object
EtabsObject = actxserver('CSI.ETABS.API.ETABSObject')

% 'start ETABS application
ret = EtabsObject.ApplicationStart()

% 'create SapModel object
SapModel = EtabsObject.SapModel

% 'initialize model
ret = SapModel.InitializeNewModel()

% 'create steel deck template model
ret = SapModel.File.NewSteelDeck(4,12,12,4,4,24,24)

% 'run analysis
System.IO.Directory.CreateDirectory('c:\CSI_API_temp')
ret = SapModel.File.Save('C:\CSI_API_temp\example.edb')
ret = SapModel.Analyze.RunAnalysis

% 'deselect all cases and combos
ret = SapModel.Results.Setup.DeselectAllCasesAndCombosForOutput

% 'set case selected for output
ret = SapModel.Results.Setup.SetCaseSelectedForOutput('DEAD')

% 'get point displacements
ret = SapModel.Results.JointReact('1',1,NumberResults, Obj, Elm, LoadCase, StepType, StepNum, F1, F2, F3, M1, M2, M3)

% 'close ETABS
EtabsObject.ApplicationExit(1)

% 'clean up variables
clearvars SapModel EtabsObject


If you run that code, in your command windows will appear:

No method 'JointReact' with matching signature found for class
'Interface.ETABS_2015_Application_Programming_Interface__API_.cAnalysisResults'.

I hope you can help me with it, thanks!

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