Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

SAP2000 using Matlab: Getting Design Summary Results

Status
Not open for further replies.

Kazi003

Civil/Environmental
Dec 25, 2011
5
Hi.

I am really new to SAP API. I am using Matlab to call SAP2000. So far I have succeeded to model an RC frame, assign loads, run the analysis and design for different codes from Matlab.

While trying to obtain the design results for columns (using SapModel.DesignConcrete.GetSummaryResultsColumn), I got an error 'Error using Interface.SAP2000v15._cDesignConcrete/GetSummaryResultsColumn
Invoke Error, Dispatch Exception: Exception occurred.' But my code worked just fine in case of extracting beam results (using SapModel.DesignConcrete.GetSummaryResultsBeam). I don't know what I am doing wrong for columns.

I have posted my code below. I would really appreciate if someone kindly helps me identify my mistake. Thank you for your time. TC.


CODE

% Run model (this will create the analysis model)
ret = SapModel.Analyze.RunAnalysis();

% Start concrete design
ret = SapModel.DesignConcrete.StartDesign;

% Get summary result data

NumberItems = 0;
FrameName = cellstr(' ');
MyOption = 2;
Location = zeros(1,1,'double');
PMMCombo = cellstr(' ');
PMMArea = zeros(1,1,'double');
PMMRatio = zeros(1,1,'double');
VmajorCombo = cellstr(' ');
AVmajor = zeros(1,1,'double');
VminorCombo = cellstr(' ');
AVminor = zeros(1,1,'double');
ErrorSummary = cellstr(' ');
WarningSummary = cellstr(' ');
Object = 0;

[ret, NumberItems, FrameName, MyOption, Location, PMMCombo, PMMArea, PMMRatio, VmajorCombo, AVmajor, VminorCombo, AVminor, ErrorSummary, WarningSummary] = SapModel.DesignConcrete.GetSummaryResultsColumn('1', NumberItems, FrameName, MyOption, Location, PMMCombo, PMMArea, PMMRatio, VmajorCombo, AVmajor, VminorCombo, AVminor, ErrorSummary, WarningSummary, Object);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor