Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

MATLAB+SAP 2000: SetLinear command does not work

Status
Not open for further replies.

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor