Bruce_Qi
Civil/Environmental
- Jul 19, 2020
- 1
Hello!
I've been trying to change the properties of an existing linear link in SAP2000 using the API and MATLAB
I'm trying this in MATLAB:
DOF=[true;true;true;true;true;true];
Fixed=[false;true;true;true;true;true];
Ke = zeros(6,1,'double');
Ce = zeros(6,1,'double');
Ke(1) =32987;
PropLink = NET.explicitCast(SapModel.PropLink,'SAP2000v1.cPropLink');
ret = PropLink.SetLinear('riseup', DOF, Fixed, Ke, Ce, 0.5, 0);
if ret~=0
disp('SapModel.PropLink.SetLinear :this command is wrong!');
end
But it doesn't work! I get ret =1, meaning that there is something wrong with the input arguments.
Really really appreciate it if you could provide me with some suggestions.
I've been trying to change the properties of an existing linear link in SAP2000 using the API and MATLAB
I'm trying this in MATLAB:
DOF=[true;true;true;true;true;true];
Fixed=[false;true;true;true;true;true];
Ke = zeros(6,1,'double');
Ce = zeros(6,1,'double');
Ke(1) =32987;
PropLink = NET.explicitCast(SapModel.PropLink,'SAP2000v1.cPropLink');
ret = PropLink.SetLinear('riseup', DOF, Fixed, Ke, Ce, 0.5, 0);
if ret~=0
disp('SapModel.PropLink.SetLinear :this command is wrong!');
end
But it doesn't work! I get ret =1, meaning that there is something wrong with the input arguments.
Really really appreciate it if you could provide me with some suggestions.