×
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

SAP2000 using Matlab: Getting Design Summary Results

SAP2000 using Matlab: Getting Design Summary Results

SAP2000 using Matlab: Getting Design Summary Results

(OP)
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);

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