×
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

Get detailed result from sap2000 using the OAPI feature

Get detailed result from sap2000 using the OAPI feature

Get detailed result from sap2000 using the OAPI feature

(OP)
Hi, I am using MATLAB to control SAP2000 for analyzing some models. I am using the OAPI functions. I can successfully build a portal steel frame and analyze and design it. However, the following error is returned in MATLAB when I try to get the detailed results:

Error using
Interface.3341A583_7CEF_46DD_AF23_5E8D3128B32A/GetDetailResultsValue
Error: Not enough storage is available to complete this operation.

I am using the following code in MATLAB:
Name='f2';
ItemType=0;
Table=2;
Field='Pr';
NumberItems=0;
FrameName=cellstr('');
Value='';
[ret] = SapModel.DesignSteel. GetDetailResultsValue(Name, ItemType, Table,Field, NumberItems, FrameName, Value);

I have also tried Value=cellstr(''). In this case the error is as follows:

Error using
Interface.3341A583_7CEF_46DD_AF23_5E8D3128B32A/GetDetailResultsValue
Error: Type mismatch, argument 7

Please help me with this errors. How should I use the GetDetailResultsValue function? sad

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