Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Set a linear link in SAP2000 using API and Matlab

Status
Not open for further replies.

GradUNH

Structural
Mar 19, 2010
5
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=logical(zeros(6,1));
Fixed=logical(zeros(6,1));
Ke=[1e8; 1e8; 1e8; 1e8; 1e8; 1e8];
Ce=(zeros(6,1));

ret = SapModel.PropLink.SetLinear('BaPartialAction', DOF, Fixed, Ke, Ce,0,0)

But it doesn't work! I get ret =1, meaning that there is something wrong with the input arguments in SapModel.PropLink.SetLinear.

Does anyone have a suggestion?

Thanks very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor