Hello,
I am in trouble again. I want to assign solid surface springs at the bottom surface of the solid which I am modeling.However I am not able to execute this syntax and its giving me following error.
No method 'SetSpring' with matching signature found for class
'Interface.03DF9EC1_080E_4AB0_B982_4780C43458FF'
The details of the spring which I want to assign:
spring stiffness per unit area:10
simple spring resists: compression only
solid object face:5
spring tension direction

arallel to solid object local axis:3
Above details are just input values.I just want this syntax to run and assign the surface spring but its not happening. Can somebody help me or atleast hint me where I am going wrong.Frankly I cant understand the input arguments.Here is the syntax I have written.
For information the defined solid element can be modeled(using addbycoord) but error only comes in set spring command line which is giving above stated error.
%% clean workspace & command window
clear;
clc;
%% pass data to Sap2000 as one-dimensional arrays
feature('COM_SafeArraySingleDim', 1);
%% pass non-scalar arrays to Sap2000 API by reference
feature('COM_PassSafeArrayByRef', 1);
%% create Sap2000 object
SapObject = actxserver('sap2000.SapObject');
%% start Sap2000 application
SapObject.ApplicationStart;
%% create SapModel object
SapModel = SapObject.SapModel;
%% initialize model
ret = SapModel.InitializeNewModel;
%% create new blank model
ret = SapModel.File.NewBlank;
%add solid object by coordinates
Name='';
x=zeros(8,1); y= zeros(8,1); z= zeros(8,1)
x(1) = 1.5; y(1) = 1.5; z(1) = 0;
x(2) = 2.0; y(2) = 1.5; z(2) = 0;
x(3) = 1.5; y(3) = 2.0; z(3) = 0;
x(4) = 2.0; y(4) = 2.0; z(4) = 0;
x(5) = 1.5; y(5) = 1.5; z(5) = 0.5;
x(6) = 2.0; y(6) = 1.5; z(6) =0.5 ;
x(7) = 1.5; y(7) = 2.0; z(7) = 0.5;
x(8) = 2.0; y(8) = 2.0; z(8) = 0.5;
[ret,Name] = SapModel.SolidObj.AddByCoord(x, y, z, Name)
Mytype=zeros(2,1,'double');
Mytype(1)=2;
s=zeros(2,1,'double');
s(1)=10;
sst=zeros(2,1,'double');
sst=1;
face=zeros(2,1,'double');
face(1)=5;
sl=zeros(2,1,'double');
sl(1)=1;
dir=zeros(2,1,'double');
dir(1)=3;
vec=[1;0;0];
ang=zeros(2,1,'double');
ang(1)=0;
ret=SapModel.SolidObj.SetSpring('Name',Mytype,s,sst,'comp',face,sl,dir,false,vec,ang,true);
ret = SapModel.View.RefreshView(0, false());
I would appreciate the help.
Thank You