zhddz
Civil/Environmental
- Apr 2, 2010
- 15
I updated my SAP2000 from v14 to v21, and found that my old MATLAB API code doesn't work any more. I'am trying to update my code, and got stucked.
My original code is like this:
ret = SapModel.PropLink.SetDamper("D1", MyDOF, MyFixed, MyNonLinear, MyKe, MyCe, MyK, MyC, MyCexp, 1, 0);
The code sets damper properties. It worked fine in SAP2000 v14, but doesn't work in v21.
MATLAB displays error: No appropriate method, property, or field 'GetDamper' for class 'SAP2000v1.wPropLink'.
Then, I change the code to this:
PropLink = NET.explicitCast(SapModel.PropLink,'SAP2000v1.cPropLink');
ret=PropLink.GetDamper("D1", MyDOF, MyFixed, MyNonLinear, MyKe, MyCe, MyK, MyC, MyCexp, 1, 0);
Doesn't work neither.
MATLAB displays error: No method 'GetDamper' with matching signature found for class 'SAP2000v1.cPropLink'.
I do not know what to do next, please help!
My original code is like this:
ret = SapModel.PropLink.SetDamper("D1", MyDOF, MyFixed, MyNonLinear, MyKe, MyCe, MyK, MyC, MyCexp, 1, 0);
The code sets damper properties. It worked fine in SAP2000 v14, but doesn't work in v21.
MATLAB displays error: No appropriate method, property, or field 'GetDamper' for class 'SAP2000v1.wPropLink'.
Then, I change the code to this:
PropLink = NET.explicitCast(SapModel.PropLink,'SAP2000v1.cPropLink');
ret=PropLink.GetDamper("D1", MyDOF, MyFixed, MyNonLinear, MyKe, MyCe, MyK, MyC, MyCexp, 1, 0);
Doesn't work neither.
MATLAB displays error: No method 'GetDamper' with matching signature found for class 'SAP2000v1.cPropLink'.
I do not know what to do next, please help!