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
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