Gil86
Civil/Environmental
- Jan 12, 2022
- 2
hi i'm Gil, i'm trying to extract the names of the Combos of ETABS with matlab, but i have the following error:
No method 'GetNameList' with matching signature found for class:
'Interface.CSi_Application_Programming_Interface__API__v1.cCombo'.,
can someone help me
these is my code
clc
clearvars
clear all
feature('COM_SafeArraySingleDim', 1);
feature('COM_PassSafeArrayByRef', 1);
SapObject = actxserver('CSI.ETABS.API.ETABSObject');
SapObject.ApplicationStart;
SapModel = SapObject.SapModel;
ret = SapModel.InitializeNewModel;
ret = SapModel.File.NewBlank;
[FileName,PathName] = uigetfile('*.edb','Selecciona Modelo');
if isequal(FileName,0)
errordlg('El usuario cancelo la operacion','Warning')
return
end
archivo=strcat(PathName,FileName);
ret = SapModel.File.OpenFile(archivo);
archivo=strcat(PathName,FileName);
ret = SapModel.File.OpenFile(archivo);
ret = SapModel.SetPresentUnits_2(6,6,2);
NumberNames=int32(1);
MyName=cellstr(' ');
[ret,NumberNames,MyName]=SapModel.RespCombo.GetNameList(ret,NumberNames,MyName);
No method 'GetNameList' with matching signature found for class:
'Interface.CSi_Application_Programming_Interface__API__v1.cCombo'.,
can someone help me
these is my code
clc
clearvars
clear all
feature('COM_SafeArraySingleDim', 1);
feature('COM_PassSafeArrayByRef', 1);
SapObject = actxserver('CSI.ETABS.API.ETABSObject');
SapObject.ApplicationStart;
SapModel = SapObject.SapModel;
ret = SapModel.InitializeNewModel;
ret = SapModel.File.NewBlank;
[FileName,PathName] = uigetfile('*.edb','Selecciona Modelo');
if isequal(FileName,0)
errordlg('El usuario cancelo la operacion','Warning')
return
end
archivo=strcat(PathName,FileName);
ret = SapModel.File.OpenFile(archivo);
archivo=strcat(PathName,FileName);
ret = SapModel.File.OpenFile(archivo);
ret = SapModel.SetPresentUnits_2(6,6,2);
NumberNames=int32(1);
MyName=cellstr(' ');
[ret,NumberNames,MyName]=SapModel.RespCombo.GetNameList(ret,NumberNames,MyName);