Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Get detailed result from sap2000 using the OAPI feature

Status
Not open for further replies.

vahid942

Civil/Environmental
Joined
Dec 7, 2011
Messages
2
Location
IR
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]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top