Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

needing help with etabs api error (propframe.getrectangle)

Status
Not open for further replies.

pariasalimi

Civil/Environmental
May 13, 2020
3
hello everyone
i am working on a project and needing to get dimension of sections defined in the model using matlab. but unfortunately i face with this error
(No method 'GetRectangle' with matching signature found for class 'ETABS2016.cPropFrame'.)
here is my code


clc
clear all
format shortG
SpecifyPath = false;
ProgramPath = 'C:\Program Files\Computers and Structures\ETABS2016\ETABS.exe';
APIDLLPath = 'C:\Program Files\Computers and Structures\ ETABS2016\ETABS2016.dll';
a = NET.addAssembly(APIDLLPath);
helper = ETABS2016.Helper;
helper = NET.explicitCast(helper,'ETABS2016.cHelper'); if SpecifyPath
ETABSObject = helper.CreateObject(ProgramPath);
else
ETABSObject = helper.CreateObjectProgID('CSI.ETABS.API.ETABSObject'); end
ETABSObject = NET.explicitCast(ETABSObject,'ETABS2016.cOAPI');
helper = 0;
%%
SapModel = NET.explicitCast(ETABSObject.SapModel,'ETABS2016.cSapModel'); ETABSObject.ApplicationStart;
FileName='E:\M.EDB '
[ ret ] = OpenFile(SapModel,FileName);
[ ret ] = unlock( SapModel );
[ ret ] = SapModel.SetPresentUnits (ETABS2016.eUnits.kgf_m_C);

PropFrame = NET.explicitCast(SapModel.PropFrame,'ETABS2016.cPropFrame');
File_Name = NET.createArray('System.String',8);File_Name(8)='';
MatProp = NET.createArray('System.String',8);MatProp(8)='';
T3 = NET.createArray('System.Double',8);
T2 = NET.createArray('System.Double',8);
Color_q = -1;
Notes = NET.createArray('System.String',8);Notes(8)='' GUID = NET.createArray('System.String',8);GUID(8)='';
[ret,File_Name,MatProp,T3,T2,Color_q,Notes,GUID]... =
PropFrame.GetRectangle('R1',File_Name,MatProp,T3,T2,Color_q,Notes,GUID);

i used other command in etabs documentation by this format, but this one doesn’t work

can somebody help me please where i am wrong??
thank you
 
Replies continue below

Recommended for you

Looks like Matlab, does matlab have a function where you can view the available methods. And do you have issues when using other methods in cPropFrame.

The last line, shouldn't it be

[ret,File_Name,MatProp,T3,T2,Color_q,Notes,GUID]=PropFrame.GetRectangle('R1');
 
thanks for your response
it is written in matlab
i don’t have problem with other etabs documentation in this format and can run all the (get) command by this procedure . but i can’t solve this one
also i run my code with your suggestion but nothing happened.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor